ArduCAM_ESP8266_UNO icon indicating copy to clipboard operation
ArduCAM_ESP8266_UNO copied to clipboard

WiFi.begin failure

Open devilstower opened this issue 5 years ago • 1 comments

When attempting to compile code that works fine on other ESP8266 boards, I get a whole series of warnings about possible incompatibility, and then I get a failure on a very basic line that compiles fine for other ESP8266 boards.

I get warnings on: ESP8266WiFi, ESP8266WebServer, DNSServer, and WiFiManager. All of them giving the same text: "WARNING: library XXX claims to run on (esp8266) architecture(s) and may be incompatible with your current board which runs on (ArduCAM_ESP8266_UNO) architecture(s)."

I then get a failure on the line:

WiFi.begin(WiFi.SSID(), WiFi.psk());

With the error being "no matching function for call to 'ESP8266WiFiClass::begin(String, String)'" Which ... there is, but it's apparently affected by one of the definition issues as this runs fine for either Adafruit's Huzzah 8266 or a SparkFun 8266 Thing.

Module: ArduCam ESP8266 Uno Flash Size: 4M CPU Frequency: 80Mhz

devilstower avatar Jun 24 '19 20:06 devilstower

Don't worry about that warning, it has no adverse effect on the operation of the project. With the error being "no matching function for call to 'ESP8266WiFiClass::begin(String, String)'" You can change the line: WiFi.begin(WiFi.SSID(), WiFi.psk()); to: Const char *ssid = "ssid "; // Put your SSID here Const char *password = "password ";// Put your PASSWORD here WiFi.begin(ssid ,password );

ArducamSupport avatar Jun 26 '19 05:06 ArducamSupport