@Links2004 thanks yes nice help . thanking you very much
@Links2004 where i can find such declaration ? i searched in ets_sys.h
they not existing, that is you problem :)
search in the SDK doc the function
read the docu for it
create the prototype for the function in ets_sys.h
test/use the function
make a pull request ;)
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