https://github.com/milan-sony/esp_web_server-lan
https://github.com/milan-sony/esp_web_server-lan
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/milan-sony/esp_web_server-lan
- Owner: milan-sony
- Created: 2023-09-29T12:46:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-02T08:56:03.000Z (over 1 year ago)
- Last Synced: 2025-01-10T11:46:21.574Z (5 months ago)
- Language: C++
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp_webserver-LAN
Here we make an HTML page then deploy that HTML page on the web server running on the ESP board. Using this you will be able to control the devices attached to the ESP board from your web browser
> In this we are using the softAP (soft Access Point)
- In ESPAsyncWebServer, the ESPAsyncWebServer library is used and send's plain text as a message to clients connected to the ESP web server
- In websockets the WebSocketsServer library is used and send's HTML page to clients connected to the ESP web server. `connection.send("LED one is ON");` is used to sent data to the server. `websockets.onEvent(webSocketEvent);` receive's the data from the client.- In websockets_JSON instead of sending the data as plain string, we sent the data in the JSON form then deserialize the JSON data using `deserializeJson()` and save's all the JSON data in the object created from `DynamicJsonDocument`
### Read Documents