static NeoEsp8266DmaMethodBase* s_this; // for the ISR
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?
../../Arduino-ESP8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ --version xtensa-lx106-elf-g++ (crosstool-NG 1.20.0) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.