This is an example LoRaWAN application for Future Electronic Sequana/LoRa training.

Files at this revision

API Documentation at this revision

Comitter:
lru
Date:
Fri Nov 22 10:35:47 2019 +0000
Parent:
59:c3aa24e36354
Commit message:
Slowed ping messages to once per 30 seconds.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Nov 21 18:00:40 2019 +0000
+++ b/main.cpp	Fri Nov 22 10:35:47 2019 +0000
@@ -46,7 +46,7 @@
  * 10 is the safe number for the stack events, however, if application
  * also uses the queue for whatever purposes, this number should be increased.
  */
-#define MAX_NUMBER_OF_EVENTS            30
+#define MAX_NUMBER_OF_EVENTS            20
 
 /**
  * Maximum number of retries for CONFIRMED messages before giving up
@@ -107,7 +107,7 @@
 uint8_t msg_id = 0;
 uint32_t delay_counter = 0;
 
-static uint32_t const INTER_FRAME_DELAY = 10;
+static uint32_t const INTER_FRAME_DELAY = 30;
 
 //static const uint8_t target_device_eui[] = MBED_CONF_APP_TARGET_DEVICE_EUI;
 static const uint8_t target_device_eui[] = { 0x00, 0xa0, 0x50, 0xff, 0xfe, 0x81, 0x27, 0x95 };