Hi All, I'm trying to diagnose why my wifi disconnects after 5 minutes and am trying to log output in the ESP8266WiFiClass::_eventCallback function. I'm trying to use the ets_printf function to log the reason to my serial, but I'm not getting any output.
I'm wondering if there is some other better way to log to serial from the .cpp code, or if there are some tricks to getting ets_printf to work.
Or, maybe, the callback isn't called ;)
have you used Serial.setDebugOutput(true); ?
Nope :) I'll try that now
That did the trick, I see now that the reason for my 5 minute disconnects is REASON_ASSOC_EXPIRE
unfortunately espressif not release a documentation of the deeper meaning of all the "reasons".
may its linked to the key rotation of WPA/WPA2. can you configure the rotation time in your router?
I am communicating with a softAP on another ESP, the only two devices on the network.
I tought it might be they key rotation, so I just tried to have no encryption, and get the same behaviour
@Links2004 That is only acadamic interest . I encountered a problem while compiling native c code using xtensa tool chain with make file the wifi is in idle condition only . unable to come from that . my basic code is uart_init(BIT_RATE_115200,BIT_RATE_115200);wifi_set_opmode( STATION_MODE );