This page is similar to the home page but uses WebSockets for real-time updates.
LED Control
| Uptime: | |
| Free heap: | |
| LED state: |
This demo uses 2 WebScokets. Status parameters are streamed by the server in JSON format every 2 seconds.
A websocket_task is created each time a specific URI is requested.
ADC values are being continuously polled by the client (i.e. your browser).
Each time a WebSocket frame is received on the server side, websocket_cb function is being called.