[LoRaWAN] Improve example comments and persistence
This commit is contained in:
parent
3d9db21387
commit
fb2bbe56b2
3 changed files with 4 additions and 6 deletions
|
@ -158,7 +158,7 @@ void loop() {
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
// on EEPROM enabled boards, you can save the current session
|
// on EEPROM enabled boards, you should save the current session
|
||||||
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
||||||
node.saveSession();
|
node.saveSession();
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ void loop() {
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
// on EEPROM enabled boards, you can save the current session
|
// on EEPROM enabled boards, you should save the current session
|
||||||
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
||||||
node.saveSession();
|
node.saveSession();
|
||||||
|
|
||||||
|
|
|
@ -283,11 +283,9 @@ void loop() {
|
||||||
Serial.println(state);
|
Serial.println(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
// on EEPROM enabled boards, you can save the current session
|
// on EEPROM enabled boards, you should save the current session
|
||||||
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
// by calling "saveSession" which allows retrieving the session after reboot or deepsleep
|
||||||
/*
|
node.saveSession();
|
||||||
node.saveSession();
|
|
||||||
*/
|
|
||||||
|
|
||||||
// wait before sending another packet
|
// wait before sending another packet
|
||||||
uint32_t minimumDelay = 60000; // try to send once every minute
|
uint32_t minimumDelay = 60000; // try to send once every minute
|
||||||
|
|
Loading…
Add table
Reference in a new issue