These are chat archives for esp8266/Arduino
I am working on a wireless bridge device (like Zigbee to WiFi) and believe I need to turn off the WiFi in order to transmit in Zigbee for FCC compliance reasons.
I am disconnecting using the sequence WiFi.disconnect(true); WiFi.mode(WIFI_OFF); WiFi.forceSleepBegin();. I re-enable using WiFi.forceSleepWake(); WiFi.persistent(false); WiFi.mode(WIFI_STA); WiFi.begin(mySsid, myPsk);
This works, but as soon as I re-enabled WiFi, the onSTAGotIP() callback is invoked with a null IP address and it is not invoked again when the IP address is actually received via DHCP. Is this expected behavior or should I file a problem ticket?