Arduino WebSocket Server Using an ESP32 @HUZZAH32 Feather Board @arduino @shawnhymel
Arduino WebSocket Server Using an ESP32 – Shawn Hymel (video).
WebSockets is an incredibly useful protocol that lets you send data to and from a server over TCP without the need for HTTP. Importantly, it lets you push data from the server to a client (e.g. a browser) without needing to make a request. This can be very handy for things like browser-based multiplayer games. I wanted to play around with it for embedded systems to see if I could get low-latency communication between a microcontroller and a computer. Specifically, I wanted the microcontroller to act as a server that supported a connection from a browser (e.g. PC or phone).
Thankfully, GitHub user Links2004 has created an Arduino WebSockets library, which makes testing WebSockets easy. To show it in action, I put together a video where I test the WebSockets library by creating an echo server and test it with a Python script.
For this test, I’m using an Adafruit HUZZAH32 Feather Board, but any ESP32 supported by the Arduino IDE should work…
from Adafruit Industries – Makers, hackers, artists, designers and engineers! https://ift.tt/2SFq9EG
via IFTTT