How to Make an Arduino WebSocket Server with an ESP32

preview_player
Показать описание
The WebSocket protocol is a useful tool for communicating between servers and clients without the need for HTTP. Here, I show how to create an Arduino WebSocket server on an ESP32 that echoes simple text messages back to connected clients. I test the server with a basic Python script.

Рекомендации по теме
Комментарии
Автор

I just got an ESP32-C3-mini-1 and I had already set up the boards and device to ESP32-C3. Following your presentation, the code worked fine on it. On to the second part! :) Thank you

lenreinhart
Автор

Instead of going the Python route, I decided to download a Chrome plugin called "Simple WebSocket Client." It was way easier for me to test- especially since I know absolutely nada about Python. Just thought I'd throw that out there. Thanks for the video!!!

jmsiefer
Автор

Very nice explanation. well structured and just the right balance between information but not to much basic stuff. thx!

savejeff
Автор

I really like your presentation style. Precise, easy to follow and high quality production. A shame that the channel is a bit underrated.

colanuss
Автор

Wow. Such a great channel Ive never known about. Thanks for the tutorial. Learned a lot from this.

fareli
Автор

Hi Shawn I didn't realise that this channel is in my subscription list...anyway welcome back...👍

BharatMohanty
Автор

Another great video, I was getting used to that devo-esque Digi-Key intro though

globalns
Автор

Great tutorial, looking forward to more!

jamesanderegg
Автор

Thank you so much for sharing~
It always a heartwarming things to get new knowledge...
#salute

visitor
Автор

Where have you been, Sir? Long time no see. Anyway, great Tutorial as always~

lintangwisesa
Автор

excellent tut, how would you do this with an sparkfun esp32 thing. no difference?

alvarobyrne
Автор

very, very clear tutorial
thanks so much

supermamaoo
Автор

hi how can i implement a web page on my websocket server?

MrAndreapas
Автор

Hello Shawn,

do you also have experience with the WebSocketsClient lib? When I use the example for ESP8266 as a client, when ESP32 is the server as you described, the client will connect to the AP-Wifi of the server, but the websocket connection becomes disconnected several times. Tested the same server connection with my python script and had no issues.

lernenmitrobin
Автор

This is so cool! I assume we could also have a websocket client on the ESP32 (instead of server)? Ideally I would have a standalone ubuntu server handling multiple esp32 clients on my local network

kasra
Автор

How do I send a websocket server data (sensor's data), I don't want it to be on browser instead on python console of a ide. can this be used for realtime stuffs ?

Alhasan-kdtq
Автор

I have esp32 where and how to connect it, do we have to connect it to arduino board?

HG-jled
Автор

Thank you Shawn for the video! How can I convert the payload which is in uint8_t into integer? (I want to control a servo.) I don't understand that data type at all and fail to find any understandable information online. Thank you for help!

peterkortvel
Автор

Hello Awesome video! I have both scripts up and running. Im wondering if there is a way to convert the String" " data send from the python script in arduino to an integer. I am trying to send pwm values to drive a motor.

andrewczar
Автор

Hi, I tried your ESP32 server example with a browser but could not make it work. Can you offer an example with ws used by browser to connect to the ESP32 please?

SA-ojbo