To experiment with LoRa parameters and not have to recompile the firmware every time, a method to change
the LoRa radio parameters was needed. Fortunately, the KISS SetHardware command could be used to do this.
Check out KISS.h for details.
Another issue is on Uno and Nano (and maybe other) Arduinos, when the serial port is opened, the processor is reset.
That means if settings were adjusted in one program, the serial port closed, and then another program was used that
opens the serial port, the settings would be lost. To get around this, settings are now stored in EEPROM (using the basic
Arduino EEPROM library).
This is fine for the ATmega type processors currently supported environments in the platform.io file. It won't be fine
when other processor types are added. When they are, the EEPROM code will need to be modified.
To experiment with LoRa parameters and not have to recompile the firmware every time, a method to change the LoRa radio parameters was needed. Fortunately, the KISS SetHardware command could be used to do this. Check out KISS.h for details.
Another issue is on Uno and Nano (and maybe other) Arduinos, when the serial port is opened, the processor is reset. That means if settings were adjusted in one program, the serial port closed, and then another program was used that opens the serial port, the settings would be lost. To get around this, settings are now stored in EEPROM (using the basic Arduino EEPROM library).
This is fine for the ATmega type processors currently supported environments in the platform.io file. It won't be fine when other processor types are added. When they are, the EEPROM code will need to be modified.