Update EasyESP via OTA from CLI
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Update EasyESP via OTA from CLI
I have several nodeMCU with EasyEsp in distant places. All of them works as "remote sensors" with local Raspberry Pi. Is any possibility to update EasyESP via OTA using Raspbian installed on RPi using RPi CLI, not from EasyESP WEB interface?
Re: Update EasyESP via OTA from CLI
If this Pi is connected to the serial port lines, you could use ESPtool.py.
Only thing is, when you run that kind of update, you have to reset the node by either press reset, or power down. Software reset will not work after flash via serial.
Other upgrade options can be to create a POST request (using curl???) and upload the firmware.
There is also an option to enable an OTA service on the ESP nodes. I've seen the option in PlatformIO and parts of it in the code, but I haven't used it myself.
Only thing is, when you run that kind of update, you have to reset the node by either press reset, or power down. Software reset will not work after flash via serial.
Other upgrade options can be to create a POST request (using curl???) and upload the firmware.
There is also an option to enable an OTA service on the ESP nodes. I've seen the option in PlatformIO and parts of it in the code, but I haven't used it myself.
-
- Normal user
- Posts: 531
- Joined: 07 Jun 2018, 06:47
- Location: Gdynia/Poland
Re: Update EasyESP via OTA from CLI
I can reset remotely all nodeMCU via remote power on/off of common power supply unit. But very interesting for me is possibility to use curl for FW update from local RPi to all local nodeMCU. Be so kind to tell me how can I do it?
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Update EasyESP via OTA from CLI
Here's a good start. https://ec.haxx.se/usingcurl-uploads.html
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Update EasyESP via OTA from CLI
You may have to look at the traffic to the ESP node when performing an update, to see if it does a POST or a PUT.
I just assumed it is a POST, since it is a reply to filling in a form, but I am not entirely sure how it is done.
I just assumed it is a POST, since it is a reply to filling in a form, but I am not entirely sure how it is done.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 95 guests