btidey wrote:AddCode: Select allWiFi.mode( WIFI_OFF );
WiFi.forceSleepBegin();
into setup()
Hmm...I might be doing something wrong but it doesn't work for me.
I get the "'WiFi' was not declared in this scope" error.
Barnabybear wrote:Hi, if you use an output pin that doesn't support SPI you will get the notification but it should still compile and run. Off hand pin 2 on the ESP is SPI data (SDA) - pin14 is the clock to match that (SCL) but you don't need to use that.
Great that works!
PinD2 works I just have to write the GPIO number which is 4. So I chose the wrong pin it seems. Thank you!
sofos1990 wrote:I get the "'WiFi' was not declared in this scope" error.
#include <ESP8266WiFi.h>
martinayotte wrote:sofos1990 wrote:I get the "'WiFi' was not declared in this scope" error.Code: Select all#include <ESP8266WiFi.h>
Cool yeah now it works but I'm not sure if it's right or not.
If I put it inside a separate setup() I can't compile the sketch giving me the following error.
If I include it into the setup() that exists already in the sketch I can compile it.