managing micropython board farm over wifi?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
jf_vt
Posts: 9
Joined: Thu Nov 25, 2021 5:15 pm

managing micropython board farm over wifi?

Post by jf_vt » Thu Nov 25, 2021 6:15 pm

Hello
I have a bunch of IoT boards ( mostly esp8266 and esp32 based) all running micropython on my network
Their number have grown overtime.
Is there a way to access these board programmatically over wifi to perform some maintenance tasks?
WHat I have in mind is mostly uploading and downloading files when I want to upgrade some software without to have to manually webrepl each individual board.
Is it something that exist or has been at least contemplated?
Thanks

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

Re: managing micropython board farm over wifi?

Post by Roberthh » Thu Nov 25, 2021 8:01 pm

There is a ftp server which can be installed on each device which can be accessed by a script at your PC. I also tested a ftp client running on the devices. Both ftp server and client are rather large. So on an esp8266 they have to be embedded as frozen bytecode. For the esp32 using frozen bytecode helps.

ftp server: https://github.com/robert-hh/FTP-Server ... 2-and-PYBD
ftp client: https://github.com/SpotlightKid/micropython-ftplib.git

That's for files in the file system. It is not suitable for updating the firmware.

jf_vt
Posts: 9
Joined: Thu Nov 25, 2021 5:15 pm

Re: managing micropython board farm over wifi?

Post by jf_vt » Fri Nov 26, 2021 4:24 am

Thanks for the info I was not aware of it
I am going to try them.
Yeah I guess the firmware is a problem. I cannot do it with webrepl either.
By the way after I posted my question I found this thread which is similar:
viewtopic.php?f=2&t=7300

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

Re: managing micropython board farm over wifi?

Post by Roberthh » Fri Nov 26, 2021 7:34 am

There was also an attempt to script the use of Webrepl at the PC. That may be an option which works with the existing firmware.

Post Reply