Update EasyESP via OTA from CLI

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mackowiakp
Normal user
Posts: 531
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Update EasyESP via OTA from CLI

#1 Post by mackowiakp » 06 Oct 2018, 10:34

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?

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Update EasyESP via OTA from CLI

#2 Post by TD-er » 06 Oct 2018, 12:39

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.

mackowiakp
Normal user
Posts: 531
Joined: 07 Jun 2018, 06:47
Location: Gdynia/Poland

Re: Update EasyESP via OTA from CLI

#3 Post by mackowiakp » 06 Oct 2018, 13:03

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?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Update EasyESP via OTA from CLI

#4 Post by grovkillen » 06 Oct 2018, 13:39

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 :idea: :idea: :idea:

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Update EasyESP via OTA from CLI

#5 Post by TD-er » 07 Oct 2018, 10:37

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 98 guests