File tree 1 file changed +8
-3
lines changed
examples/SlimLoRa-erase-session
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * This sketch tests eeprom of SlimLoRA. I use it to debug the arduino style eeprom store.
2
+ * This sketch ERASES eeprom of SlimLoRA. I use it to debug the arduino style eeprom store.
3
+ * change the EEPROM_OFFSET in SlimLoRa.h to erase the session.
4
+ *
5
+ * Yes, you can use multiple sessions / networks with some hacking with SlimLoRa.
3
6
*/
4
7
5
8
#include < stdint.h>
@@ -23,9 +26,11 @@ void setup() {
23
26
// TEST EEPROM data of SlimLoRa
24
27
lora.SetHasJoined (0 );
25
28
Serial.print (" HasJoined: " );Serial.println (lora.GetHasJoined ());
26
- lora.SetTxFrameCounter (0 );
29
+ lora.tx_frame_counter_ = 0 ;
30
+ lora.SetTxFrameCounter ();
27
31
Serial.print (" TxFrameCounter: " );Serial.println (lora.GetTxFrameCounter ());
28
- lora.SetRxFrameCounter (0 );
32
+ lora.rx_frame_counter_ = 0 ;
33
+ lora.SetRxFrameCounter ();
29
34
Serial.print (" RxFrameCounter: " );Serial.println (lora.GetRxFrameCounter ());
30
35
lora.SetRx1DataRateOffset (0 );
31
36
Serial.print (" Rx1DataRateOffset: " );Serial.println (lora.GetRx1DataRateOffset ());
You can’t perform that action at this time.
0 commit comments