Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SloMusti opened this issue Mar 11, 2017 · 1 comment

Comments

@SloMusti
Copy link
Contributor

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).

@jpmeijers
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants