How to Create a Web Server (with WebSockets) Using an ESP32 in Arduino
This is a continuation of the ESP32 WebSocket Server video: https://www.youtube.com/watch?v=ZbX-l1Dl4N4. Let's take it to the next level! We begin by hosting a web server and WebSocket server on an ESP32 using Arduino. Next, we use SPIFFS to upload a simple index.html page that we write separately. This page will open a WebSocket connection back to the ESP32, where we can use the page's button to toggle an LED (relatively quickly).
Note that we use the ESP32 as an access point (AP) here to simplify the process. You can do away with the access point, if you wish to have the web server on your local network.
WebSockets provide a persistent connection between a client and server so that either party can send data at any time. They are very useful in things like networked video games, but they can also be applied to IoT devices, if we need fast control of hardware over a network.
Arduino and HTML code from the video can be found here: http://shawnhymel.com/1882/how-to-create-a-web-server-with-websockets-using-an-esp32-in-arduino/
Видео How to Create a Web Server (with WebSockets) Using an ESP32 in Arduino канала Shawn Hymel
Note that we use the ESP32 as an access point (AP) here to simplify the process. You can do away with the access point, if you wish to have the web server on your local network.
WebSockets provide a persistent connection between a client and server so that either party can send data at any time. They are very useful in things like networked video games, but they can also be applied to IoT devices, if we need fast control of hardware over a network.
Arduino and HTML code from the video can be found here: http://shawnhymel.com/1882/how-to-create-a-web-server-with-websockets-using-an-esp32-in-arduino/
Видео How to Create a Web Server (with WebSockets) Using an ESP32 in Arduino канала Shawn Hymel
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
ESP8266 Web Server and Websockets Using Arduino IDE (Mac OSX and Windows) | vs. AJAX and HTTPHow to add WiFi Control to any project || ESP32 Beginner's GuideMQTT on ESP32 | Controlling Appliances and Monitoring Sensor on Ubidots | ESP32 ProjectsWhat are WebSockets | How is it different from HTTP?WebSockets Crash CourseHow to Make an Arduino WebSocket Server with an ESP32esp8266 websocket javascript example with css style button using arduino ide - NodeMcuMOSFETs and Transistors with ArduinoWebSocket Server Home Automation using ESP32 or NodeMCU boardESP32 To ESP32 Real-Time Data Transfer Using Websockets Client/Server | BME680 + Arduino IDEESP8266 Plot Sensor Data With Websockets/Chart.js In Arduino IDE (Mac OSX & Windows) | WeMos BMP180Build an ESP32 Web Server with Arduino IDEESP8266 + Arduino + database - Control Anything from AnywhereRemote control everything over WiFi with ESP32 and relaysESP8266 Web Server POST Requests With JSON Data In Arduino IDE (Mac OSX and Windows)Introduction to ESP32 - Getting StartedESP8266 Save Files To SPIFFS Flash Memory w/ Arduino | File System Storage, Web ServerUltra Reponsive IoT Web Interface (ESP8266 + WebSockets)ESP32 VGA Beginner Tutorial [Arduino Library ESP32Lib]Visualize Your Sensor Readings from Anywhere in the World (ESP32/ESP8266 + MySQL + PHP)