mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-27 20:59:00 +08:00
update
This commit is contained in:
parent
6920c1159b
commit
4245a6d04d
@ -1,30 +1,10 @@
|
||||
# A UART to network bridge for ESP32
|
||||
|
||||
This example is a demonstration of how Mongoose Library could be integrated
|
||||
into an embedded device and provide a UART-to-Network bridge capability:
|
||||
|
||||
- A device opens listening TCP port and Websocket port and waits for connections
|
||||
- When a client connects, data is exchanged with the device's UART
|
||||
- Everything that client send, is sent to the UART
|
||||
- Everything that is read from the UART, gets sent to the client
|
||||
- Multiple clients are allowed
|
||||
- Live UART console allows to talk to the UART from the web page
|
||||
- Web UI is hardcoded into the binary and does not need a filesystem
|
||||
|
||||
# Screenshots
|
||||
|
||||
![](../../uart-bridge/screenshots/dashboard.png)
|
||||
|
||||
# Build and flash
|
||||
- See detailed tutorial at https://mongoose.ws/tutorials/esp32/uart-bridge/
|
||||
|
||||
Build requires Docker installed, and uses Espressif's ESP-IDF docker image:
|
||||
|
||||
```sh
|
||||
make build
|
||||
make flash PORT=/dev/YOURSERIAL
|
||||
```
|
||||
|
||||
# Flash pre-built firmware
|
||||
## Flash pre-built firmware
|
||||
|
||||
You can flash a pre-built firmware to the ESP32 device using the following
|
||||
instructions:
|
||||
|
@ -1,22 +1 @@
|
||||
# An example ESP8266 application
|
||||
|
||||
To build this application, follow these steps:
|
||||
|
||||
1. Make sure you have Docker installed
|
||||
2. Clone whole mongoose repository on your machine:
|
||||
```sh
|
||||
git clone https://github.com/cesanta/mongoose.git
|
||||
```
|
||||
3. Start command line or terminal, and go into the example's directory:
|
||||
```sh
|
||||
cd mongoose/examples/esp8266
|
||||
```
|
||||
4. Run `make`. This invokes a Docker-based build. A firmware will be built
|
||||
in the `src/build/` directory:
|
||||
```sh
|
||||
make build
|
||||
```
|
||||
5. Flash your ESP8266. If you have esptool.py installed, the build process will end telling you the command to flash your device. You can just run `make` again to use Docker:
|
||||
```sh
|
||||
make flash PORT=/your/serial
|
||||
```
|
||||
See detailed tutorial at https://mongoose.ws/tutorials/esp8266/http-client-server/
|
Loading…
Reference in New Issue
Block a user