2024-07-16 19:05:20 +00:00
|
|
|
# ESP32 device
|
|
|
|
|
|
|
|
ESP32 client device, using `W32-ETH01` device
|
2024-10-05 13:50:46 +00:00
|
|
|
|
|
|
|
## Some commands
|
|
|
|
|
|
|
|
Create a new firmware build:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
idf.py build
|
|
|
|
```
|
|
|
|
|
|
|
|
Upload firmware to central backend, in dev mode:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
curl -k -X POST https://localhost:8443/web_api/ota/Wt32-Eth01/$(cat version.txt) --form firmware="@build/main.bin"
|
2024-10-05 14:26:07 +00:00
|
|
|
curl -k -X POST https://localhost:8443/web_api/ota/set_desired_version --header "Content-Type: application/json" --data "{\"platform\": \"Wt32-Eth01\", \"version\": \"$(cat version.txt)\"}"
|
2024-10-05 13:50:46 +00:00
|
|
|
```
|