SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
146 stars 80 forks source link

Delay the WiFi state update until all startables have been called #599

Closed mairas closed 2 years ago

mairas commented 2 years ago

Enabling the WiFi Access Point mode happens immediately, meaning that the internal WiFi status update callback is called immediately. Not all startables have been called at this point, resulting in some consumers missing the update.

To fix the issue, emitting the WiFiStatus update is delayed until after the event loop has started.