Best way to manage multiple modules? #927
-
I am wondering how other people dealing with my current problem: I have multiple different ESP-Boards which I frequently want to update or I want to try out different stuff on some of the beards. If switch between boards I currently have to manually change the LoRaWAN Keys to the correct ones for each board. I do not really want to have a separate branch for each board or even the code copied for each board. Would it be possible to work with environment variables and different set ups in the platformio.ini or has somebody a better way of doing this? Due to other circumstance I do not think that OTA is a choice for me. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Easiest way is to use OTAA and same APPKEY and APPEIU for all boards. Using an all-zero DEVEIU (see example in loraconf.h), then each board will generate it's own unique DEVEIU while joining, based on it's internal unique ESP32 MAC. I would in general not recommend to use ABP, because it has some disadvantages. |
Beta Was this translation helpful? Give feedback.
Easiest way is to use OTAA and same APPKEY and APPEIU for all boards. Using an all-zero DEVEIU (see example in loraconf.h), then each board will generate it's own unique DEVEIU while joining, based on it's internal unique ESP32 MAC.
I would in general not recommend to use ABP, because it has some disadvantages.