SolarEnergy/esp32_device
2024-12-24 17:30:17 +01:00
..
.devcontainer Create ESP32 project 2024-07-16 21:05:20 +02:00
.vscode Prepare OTA execution 2024-10-05 20:28:55 +02:00
docs Add ESP32 pinout 2024-09-28 21:14:09 +02:00
main Add a PIN to the card 2024-12-24 17:22:37 +01:00
.gitignore Create ESP32 project 2024-07-16 21:05:20 +02:00
build_upload_dev.sh Can set device desired version 2024-10-05 16:26:07 +02:00
CMakeLists.txt Create ESP32 project 2024-07-16 21:05:20 +02:00
README.md Add a PIN to the card 2024-12-24 17:22:37 +01:00
sdkconfig Upgraded ESP-IDF to version 5.3.1 2024-10-13 12:39:29 +02:00
sdkconfig.old Update sdkconfig for OTA 2024-09-29 18:33:41 +02:00
version.txt Publish version 1.0.2 of ESP32 firmware 2024-12-24 17:30:17 +01:00

ESP32 device

ESP32 client device, using W32-ETH01 device

Pins for relays

The pins are the following (in the order of definition): 4, 14, 15, 2

WARNING! The Pin 2 MUST be disconnect to reflash the card!

Some commands

Create a new firmware build:

idf.py build

Upload firmware to central backend, in dev mode:

curl -k -X POST  https://localhost:8443/web_api/ota/Wt32-Eth01/$(cat version.txt) --form firmware="@build/main.bin"
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)\"}"