Application example using LoRaWAN-lib MAC layer implementation for STM32 + SX1276 on OpenChirp

Dependencies:   mbed LoRaWAN-lib SX1276Lib

Revision:
12:bf1efd688cc8
Parent:
11:a2c88830d3bf
Child:
13:779fef3e4573
--- a/app/main.cpp	Thu Jun 27 18:58:43 2019 +0000
+++ b/app/main.cpp	Fri Jun 28 20:18:15 2019 +0000
@@ -290,12 +290,13 @@
     {
     case 10:
         {  
-//            uint32_t tempValue = ( uint32_t )( 12345678 );
-            AppData[0] = 0;
-            AppData[1] = 0x12;
-            AppData[2] = 0x34;
-            AppData[3] = 0x56;
-            AppData[4] = 0x78;
+            static uint32_t counter = ( uint32_t )480;
+            AppData[0] = counter>>24 & 0xFF;
+            AppData[1] = counter>>16 & 0xFF;
+            AppData[2] = counter>>8 & 0xFF;
+            AppData[3] = counter & 0xFF;
+            
+            counter ++;
         }
         break;
     case 15: