MicroPython - ESP32 - Is is possible to update files?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
guyd
Posts: 81
Joined: Fri Jul 20, 2018 6:08 am

MicroPython - ESP32 - Is is possible to update files?

Post by guyd » Sun Jul 22, 2018 6:21 am

Hi,

I'm using ESP32 to activate a scheduled GPIO on and off ( relay ).
Time schedule is defined in a file saved on ESP32.

Is it possible to change this text file while ESP32 is not connected to PC using cable (ESP32 is already installed on remote location ) ?

Guy

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython - ESP32 - Is is possible to update files?

Post by Roberthh » Sun Jul 22, 2018 9:31 am

If WiFI is activated, it may be possible. But that requires some agent being active on that device, like WebRepl.

guyd
Posts: 81
Joined: Fri Jul 20, 2018 6:08 am

Re: MicroPython - ESP32 - Is is possible to update files?

Post by guyd » Sun Jul 22, 2018 10:08 am

Hi,
Yes, Wifi is activated, but WEBRepl is available for ESP32 ?

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: MicroPython - ESP32 - Is is possible to update files?

Post by OutoftheBOTS_ » Sun Jul 22, 2018 10:24 am

Do u have a ftp server running on the ESP32??

guyd
Posts: 81
Joined: Fri Jul 20, 2018 6:08 am

Re: MicroPython - ESP32 - Is is possible to update files?

Post by guyd » Sun Jul 22, 2018 10:35 am

Not one that I know of

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython - ESP32 - Is is possible to update files?

Post by kevinkk525 » Wed Jul 25, 2018 2:07 pm

You could use the loboris fork for esp32 which has a ftp-server built-in which just has to be enabled. Then you can easily modify that file.

A different approach would be to get the value you have in the file by mqtt subscription.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

guyd
Posts: 81
Joined: Fri Jul 20, 2018 6:08 am

Re: MicroPython - ESP32 - Is is possible to update files?

Post by guyd » Wed Jul 25, 2018 2:38 pm

Thank you for your answer.

1) I look for loboris - it seems interesting. Does it mean I'll have to flash a new bin of Micropython ? BTW - it is possible to run telnet without loboris ?

2) This is another way to look at it ")

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython - ESP32 - Is is possible to update files?

Post by kevinkk525 » Thu Jul 26, 2018 4:10 pm

1) yes, you can download the prebuilt firmware on his repository and flash it.
1b) I have not heard of telnet outside of loboris fork
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: MicroPython - ESP32 - Is is possible to update files?

Post by pythoncoder » Fri Jul 27, 2018 9:36 am

Peter Hinch
Index to my micropython libraries.

guyd
Posts: 81
Joined: Fri Jul 20, 2018 6:08 am

Re: MicroPython - ESP32 - Is is possible to update files?

Post by guyd » Sun Jul 29, 2018 9:01 am

pythoncoder wrote:
Fri Jul 27, 2018 9:36 am
See this telnet server.
TNKU very much - very usefull!
another- installing FTP server to gain ability to update file remotely.

Post Reply