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

    Cannot use Wifi

    Scheduled Pinned Locked Moved M5 Stick/StickC
    1 Posts 1 Posters 2.6k Views
    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 Offline
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post