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=3FFBF008Here 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?
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