Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Gautier-dev
    G
    • Continue chat with Gautier-dev
    • Start new chat with Gautier-dev
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Gautier-dev

    @Gautier-dev

    0
    Reputation
    1
    Posts
    433
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Gautier-dev Follow

    Posts made by Gautier-dev

    • Cannot use Wifi

      Hi guys,
      I am trying to use the wifi on the board but I get the following error at the wifi.begin line in the serial terminal :
      addApbChangeCallback(): duplicate func=400EAB44 arg=3FFBF008

      Here is my code :
      #include "M5StickCPlus.h"
      #include <WiFi.h>

      #define WIFI_SSID "router"
      #define WIFI_PASS "pass"

      void setup() {
      M5.begin(true, true, true);
      Serial.printf("Connecting to %s ", WIFI_SSID);
      WiFi.begin(WIFI_SSID, WIFI_PASS);
      while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
      }
      Serial.println("CONNECTED");
      }

      I also tried to declare WIFI_SSID and the WIFI_PASS as a const char*. However, it does not work either. I cannot compile, I have this error : "error: invalid conversion from 'const char*' to 'char*'"

      What am I missing?

      posted in M5 Stick/StickC
      G
      Gautier-dev