ESP32 which sends data from an analog pin via the WebSocket protocol Other WebSocket library for ESP32 I think it would be good to check out this library, it seems cleaner and better documented: https://github.com/gilmaimon/ArduinoWebsockets