Skip to content

DominikN/esp32-ota-asyncdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp32-ota-asyncdemo

Read more here

Quick start

export ENV_WIFI_SSID=YOUR_WIFI_SSID
export ENV_WIFI_PASS=YOUR_WIFI_PASS
export ENV_HUSARNET_JOINCODE=YOUR_JOIN_CODE
pio run -t upload

Making a custom HTTP request with cURL:

curl -# -v -X POST \
  'http://ota-test:3232/update' \
  -H 'Accept: */*' \
  -H 'Accept-Encoding: gzip, deflate' \
  -H 'Connection: keep-alive' \
  --form "MD5="$(md5sum "/home/dominik/tech/esp32-ota-asyncdemo/.pio/build/esp32dev/firmware.bin" | cut -d ' ' -f 1)"" \
  --form 'firmware=@/home/dominik/tech/esp32-ota-asyncdemo/.pio/build/esp32dev/firmware.bin'
curl -# -v \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Connection: keep-alive' \
-H 'Expect:' \
-H 'Cookie: visited=1' \
-H 'Accept-Language: en-US,en;q=0.5' \
-H 'Origin: http://ota-test:3232' \
-H 'Referer: http://ota-test:3232/update' \
-F "MD5="$(md5sum "/home/dominik/tech/esp32-ota-asyncdemo/.pio/build/esp32dev/firmware.bin" | cut -d ' ' -f 1)"" \
-F 'firmware=@/home/dominik/tech/esp32-ota-asyncdemo/.pio/build/esp32dev/firmware.bin' \
'http://ota-test:3232/update'

Troubleshooting

Erasing flash memory of ESP32

  1. Connect ESP32 to your laptop

  2. Install platformio CLI

pip install -U platformio
  1. Make flash erase:
pio run --target erase

Monitoring network traffic on hnet0 interface

sudo tcpflow -p -c -i hnet0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published