🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error Network Mesh with M5Stack

    General
    1
    2
    3.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vgamlc
      last edited by vgamlc

      Greetings to all those who help us on these devices.
      I am trying to compile the Mesh Painless mesh basic network example and it gives me a series of errors and I am unable to resolve. If I compile the example with an ES32_Dev_Module board it has no problems but when switching to M5Stack Core2 or any of the family (M5Stick or M5Atom) it does not compile.

      C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp: In member function 'void painlessmesh::wifi::Mesh::eventHandleInit()':
      C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:251:22: error: 'SYSTEM_EVENT_SCAN_DONE' is not a member of 'arduino_event_id_t'
      WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
      ^~~~~~~~~~~~~~~~~~~~~~
      C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:260:22: error: 'SYSTEM_EVENT_STA_START' is not a member of 'arduino_event_id_t'
      WiFiEvent_t::SYSTEM_EVENT_STA_START);
      ^~~~~~~~~~~~~~~~~~~~~~
      C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:271:22: error: 'SYSTEM_EVENT_STA_DISCONNECTED' is not a member of 'arduino_event_id_t'
      WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:281:22: error: 'SYSTEM_EVENT_STA_GOT_IP' is not a member of 'arduino_event_id_t'
      WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
      ^~~~~~~~~~~~~~~~~~~~~~~
      Multiple libraries were found for "WiFi.h"
      Used: C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.0\libraries\WiFi
      Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
      exit status 1
      Error compiling for board M5Stack-Core2.

      Thanks in advance.

      V 1 Reply Last reply Reply Quote 0
      • V
        vgamlc @vgamlc
        last edited by

        Any help? Pleased

        1 Reply Last reply Reply Quote 0
        • First post
          Last post