RP

Dependencies:   mbed SX1272Lib

Revision:
9:443b48f76c2e
Parent:
8:99ba7eb13376
Child:
13:4429cb012011
--- a/app/main.cpp	Mon Mar 05 21:12:13 2018 +0000
+++ b/app/main.cpp	Tue Mar 06 19:57:37 2018 +0000
@@ -39,7 +39,7 @@
 /*!
  * LoRaWAN confirmed messages
  */
-#define LORAWAN_CONFIRMED_MSG_ON                    true
+#define LORAWAN_CONFIRMED_MSG_ON                    false
 
 /*!
  * LoRaWAN Adaptive Data Rate
@@ -57,7 +57,7 @@
  *
  * \remark Please note that ETSI mandates duty cycled transmissions. Use only for test purposes
  */
-#define LORAWAN_DUTYCYCLE_ON                        false
+#define LORAWAN_DUTYCYCLE_ON                        true
 
 #define USE_SEMTECH_DEFAULT_CHANNEL_LINEUP          1
 
@@ -290,14 +290,15 @@
     {
     case 15:
         {
-            AppData[0] = AppLedStateOn;
+            //AppData[0] = AppLedStateOn;
+            AppData[0] = 'A'; 
+            //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
             if( IsTxConfirmed == true )
             {
-                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;