Hi,
I have windows 10 and VSC installed.
Using the current toolchain (installed mid of August) I compiled an OTA example I wrote.
Previously I used BASH, so I could update over the air:
curl ${ESP32_IP}:8032 --data-binary @- < buld/$(PROJECT_NAME).bin
Now I have trouble to figure out how I can run a HTTPS server that will provide the .bin to the ESP.
Is there a way to setup an HTTPS server using powershell or an VSC extension?
I do not intend to install WSL for this.
Unfortunately I could not find answer via google or in the forum, maybe I am not using the right search terms.
Kind regards
GvTT
Windows Powershell OTA - how to?
Re: Windows Powershell OTA - how to?
Hi Chegewara,
thank you for your reply. Looks exactly like I was looking for.
I will try this soon and leave a comment thereafter to complete this thread.
Greetings
Georg
thank you for your reply. Looks exactly like I was looking for.
I will try this soon and leave a comment thereafter to complete this thread.
Greetings
Georg
Re: Windows Powershell OTA - how to?
Hi,
I verified Chegewara"s link and got it working:
curl 192.168.1.1:8032 --data-binary @- < build/ota.bin
running the above command from the project root, pointing to the binary,
IP set to the one of the ESP32, port according to the defined one
works in the command <cmd> windows.
If you like to run it in PowerShell, you need to pipe it to the command shell:
"curl 192.168.1.1:8032 --data-binary @- < build/ota.bin" | cmd
I am sure there is a more direct way.
Now I have to find a way to integrate this into idf.py
@Chegewara: thank you for pointing me to the other thread.
Issue resolved
Many thanks
Georg
I verified Chegewara"s link and got it working:
curl 192.168.1.1:8032 --data-binary @- < build/ota.bin
running the above command from the project root, pointing to the binary,
IP set to the one of the ESP32, port according to the defined one
works in the command <cmd> windows.
If you like to run it in PowerShell, you need to pipe it to the command shell:
"curl 192.168.1.1:8032 --data-binary @- < build/ota.bin" | cmd
I am sure there is a more direct way.
Now I have to find a way to integrate this into idf.py
@Chegewara: thank you for pointing me to the other thread.
Issue resolved
Many thanks
Georg
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 110 guests