Windows Powershell OTA - how to?

GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

Windows Powershell OTA - how to?

Postby GvTardy » Sun Aug 25, 2019 1:05 pm

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

chegewara
Posts: 2230
Joined: Wed Jun 14, 2017 9:00 pm

Re: Windows Powershell OTA - how to?

Postby chegewara » Mon Aug 26, 2019 11:59 am


GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

Re: Windows Powershell OTA - how to?

Postby GvTardy » Mon Aug 26, 2019 8:13 pm

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

GvTardy
Posts: 23
Joined: Tue Jan 01, 2019 3:26 pm

Re: Windows Powershell OTA - how to?

Postby GvTardy » Sun Sep 01, 2019 10:18 am

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

Who is online

Users browsing this forum: No registered users and 143 guests