LoRaWAN OTAA example fix
node.begin(); does not exist anymore, in OTAA speech, this should be node.restoreOTAA();. However, I am unsure what should be the correct way to fix the ABP example.
This commit is contained in:
parent
aca1d78a97
commit
9db4123352
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ void setup() {
|
||||||
// by calling "begin"
|
// by calling "begin"
|
||||||
/*
|
/*
|
||||||
Serial.print(F("[LoRaWAN] Resuming previous session ... "));
|
Serial.print(F("[LoRaWAN] Resuming previous session ... "));
|
||||||
state = node.begin();
|
state = node.restoreOTAA();
|
||||||
if(state == RADIOLIB_ERR_NONE) {
|
if(state == RADIOLIB_ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue