RN2483-Arduino-Library icon indicating copy to clipboard operation
RN2483-Arduino-Library copied to clipboard

Implement configuration of ABP and OTAA in examples by pasting Example code

Open SloMusti opened this issue 7 years ago • 1 comments

The TTN website in Device mode displays keys for device in ABP mode in the section Example Code that looks like:

const char *devAddr = "xxx"; const char *nwkSKey = "xxxxx"; const char *appSKey = "xxxxx";

it would be best to refine the examples such that one can simply paste this and uncomment the suitable ABP or OTAA mode, as otherwise pasting keys and swapping their order and similar may occur (as it did to me).

SloMusti avatar Mar 11 '17 20:03 SloMusti

I've implemented this in the ArduinoUnoNano-basic example. Maybe this can be done a little cleaner by defining the keys at the top of the file, and not directly before the init(). But then users that want to switch to OTAA needs to change code in two places.

jpmeijers avatar Mar 13 '17 13:03 jpmeijers