https://github.com/fabianober/websocketserver
WebSockets for ESP32 devices, enabling real-time communication between the ESP32 and web clients
https://github.com/fabianober/websocketserver
embedded-systems esp32 websocket
Last synced: about 2 months ago
JSON representation
WebSockets for ESP32 devices, enabling real-time communication between the ESP32 and web clients
- Host: GitHub
- URL: https://github.com/fabianober/websocketserver
- Owner: fabianober
- Created: 2024-12-14T14:45:08.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-14T15:13:46.000Z (over 1 year ago)
- Last Synced: 2024-12-14T15:33:29.469Z (over 1 year ago)
- Topics: embedded-systems, esp32, websocket
- Language: C++
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebSocketServer
WebSocketServer is a WebSocket server library for Arduino, specifically designed for the ESP32 platform. This library allows you to create a WebSocket server on your ESP32 device, enabling real-time communication between the ESP32 and web clients.
## Features
- Easy-to-use API for setting up a WebSocket server
- Support for handling multiple WebSocket connections
- Ability to broadcast messages to all connected clients
- Customizable message handling with callback functions
- Built-in ping mechanism to monitor connection status
## Requirements
- ESP32 development board
- Arduino IDE with ESP32 board support installed
- WiFi network for the ESP32 to connect to
## Installation
1. Download the library from the [GitHub repository](https://github.com/fabianober/WebSocketServer).
2. Extract the downloaded ZIP file.
3. Copy the `WebSocketServer` folder to your Arduino libraries directory (usually located at `~/Documents/Arduino/libraries`).
## Usage
### Basic Example
The example is provided in the `examples` folder of the library. Run it on your ESP32 device to start a WebSocket server and then use the web.html in the same folder to connect to the server.