Deploying fleets of micropython devices but with subtlety different configurations #9406
-
Hey all, I'm building a solution using esp32 devices and micropython that utilises LoRaWAN. As part of it, each device needs to be given a distinct name and LoRaWAN configuration (DevEUI, AppSKey etc). What's the best way to do this in micropython? I'm currently flashing the code using Ampy, but I'm wondering if there's a better solution than manually updating the config.py file, copying the code over, and restarting the device? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Unless you can derive things from |
Beta Was this translation helpful? Give feedback.
-
Maybe have the device itself connect to a server on the first boot to retrieve its personal config.py (identified by sending along the MAC address or unique ID with the request)? You could put that code in the initial config.py that is then replaced by the real one. |
Beta Was this translation helpful? Give feedback.
-
@proffalken Not your actual question, but have you seen |
Beta Was this translation helpful? Give feedback.
Maybe have the device itself connect to a server on the first boot to retrieve its personal config.py (identified by sending along the MAC address or unique ID with the request)? You could put that code in the initial config.py that is then replaced by the real one.