RP

Dependencies:   mbed SX1272Lib

Revision:
8:99ba7eb13376
Parent:
7:5077515c163b
Child:
9:443b48f76c2e
diff -r 5077515c163b -r 99ba7eb13376 app/main.cpp
--- a/app/main.cpp	Mon Apr 24 13:29:34 2017 +0000
+++ b/app/main.cpp	Mon Mar 05 21:12:13 2018 +0000
@@ -34,7 +34,7 @@
 /*!
  * Default datarate
  */
-#define LORAWAN_DEFAULT_DATARATE                    DR_0
+#define LORAWAN_DEFAULT_DATARATE                    DR_5
 
 /*!
  * LoRaWAN confirmed messages
@@ -46,7 +46,7 @@
  *
  * \remark Please note that when ADR is enabled the end-device should be static
  */
-#define LORAWAN_ADR_ON                              1
+#define LORAWAN_ADR_ON                              0
 
 #if defined( USE_BAND_868 )
 
@@ -293,11 +293,11 @@
             AppData[0] = AppLedStateOn;
             if( IsTxConfirmed == true )
             {
-                AppData[1] = LoRaMacDownlinkStatus.DownlinkCounter >> 8;
-                AppData[2] = LoRaMacDownlinkStatus.DownlinkCounter;
-                AppData[3] = LoRaMacDownlinkStatus.Rssi >> 8;
-                AppData[4] = LoRaMacDownlinkStatus.Rssi;
-                AppData[5] = LoRaMacDownlinkStatus.Snr;
+                AppData[1] = 'H'; // ASCII : 0x48
+                AppData[2] = 'e'; // ASCII : 0x65
+                AppData[3] = 'l'; // ASCII : 0x6C
+                AppData[4] = 'l'; // ASCII : 0x6C
+                AppData[5] = 'o'; // ASCII : 0x6F
             }
         }
         break;