Read WiFiMode?
Posted: Sun Jun 21, 2015 5:01 pm
This seems like one of those things that ought to be obvious, but i'm just not getting it: how can I read the current WiFiMode?
WiFi.mode() returns 0, which makes sense as it's a void function. wifi_get_opmode seems like it ought to work, but I can't figure out the syntax to get it to compile:
Yes, i've included ESP8266WiFi.h. Is there a special sauce syntax I need to use, or am I barking up the wrong tree? Anybody?
WiFi.mode() returns 0, which makes sense as it's a void function. wifi_get_opmode seems like it ought to work, but I can't figure out the syntax to get it to compile:
Code: Select all
Serial.print("Wifi Mode:");
Serial.println(wifi_get_opmode());
Yes, i've included ESP8266WiFi.h. Is there a special sauce syntax I need to use, or am I barking up the wrong tree? Anybody?