Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
15.04k stars 3.25k forks source link

Draft: Add settings and OTA lock state to info #4279

Open willmmiles opened 1 week ago

willmmiles commented 1 week ago

As requested by @Moustachauve on Discord: add the settings and OTA lock states to the info struct, so UIs can direct users to an appropriate workflow for updating their devices.

I'm not 100% confident about the usage of interfaceUpdateCallMode in these contexts to induce websocket notifications. The notification subsystem currently seems a bit tangled to me. If this stands out as obviously wrong, please let me know.

blazoncek commented 1 week ago

In fact it is convoluted. It took me 2 years to decipher it. 😄 If you want notifications to be broadcast, use: stateUpdated = true;