HelTecAutomation / platform-asrmicro650x

ASR Microelectronics ASR650x: development platform for PlatformIO
https://registry.platformio.org/platforms/heltecautomation/asrmicro650x
24 stars 15 forks source link

Join after reset #3

Closed rony-vargas closed 3 years ago

rony-vargas commented 3 years ago

I am trying to avoid a join every time the device resets and I am using this code line: bool keepNet = LORAWAN_NET_RESERVE;

and platformio.ini this flag is set: board_build.arduino.lorawan.net_reserve = ON

But it doesn't take any effect, every reset the device goes and re-join

valeros commented 3 years ago

Hi @rony-vargas ! Does it work in Arduino IDE?

rony-vargas commented 3 years ago

Hi @valeros It doesn't work on Arduino IDE as well: Arduino IDE Version: 1.8.13 When looking to debug prints, device prints +KeepNet=0 image But I have confirmed it is ON on both, Arduino and PlatformIO image

platformio.ini

[env:cubecell_board_plus]
platform = asrmicro650x
board = cubecell_board_plus
framework = arduino
lib_deps = sabas1080/CayenneLPP@^1.1.0
upload_port = COM17
monitor_speed=115200
board_build.arduino.lorawan.region = US915
board_build.arduino.lorawan.adr = ON
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO
board_build.arduino.lorawan.at_support = ON
board_build.arduino.lorawan.uplinkmode = UNCONFIRMED
board_build.arduino.lorawan.net_reserve = ON
valeros commented 3 years ago

Since the problem is not specific solely to PlatformIO, please forward the issue here https://github.com/HelTecAutomation/ASR650x-Arduino/issues where it should get more attention.