Page 1 of 1

Event callback still called after deiniting it and calling esp_wifi_stop()

Posted: Sun Feb 12, 2023 7:27 pm
by trwel4
I am trying to develop a mesh application where at the root node, it checks for the existence of the router. If it wasn't there after N seconds, it will make a local mesh network instead.

This is the code I wrote to restart the esp-mesh

Re: Event callback still called after deiniting it and calling esp_wifi_stop()

Posted: Wed Jun 07, 2023 5:08 am
by rsimpsonbusa
Partially I have same problem or need.

You should monitor the IP_EVENT_STA_GOT_IP and IP_EVENT_STA_LOST_IP. I can vouch for the IP_EVENT_STA_GOT_IP event, which I use to start other tasks only when there is a confirmed connection to the router, made by starting the mesh.

But I have not been able to receive the IP_EVENT_STA_LOST_IP event, in order to manage these tasks correctly. This at root node since it controls the access to the router.

Wrong topic title BTW... and no code... in a hurry? :)