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

    Cannot use Wifi

    M5 Stick/StickC
    1
    1
    2.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.
    • G
      Gautier-dev
      last edited by

      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?

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