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:
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?