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

Dependencies:   mbed LoRaWAN-lib SX1276Lib

Revision:
10:715b2204399b
Parent:
9:ee9dcbb9708d
Child:
11:a2c88830d3bf
diff -r ee9dcbb9708d -r 715b2204399b app/main.cpp
--- a/app/main.cpp	Mon Apr 24 13:38:31 2017 +0000
+++ b/app/main.cpp	Tue Jun 25 15:42:58 2019 +0000
@@ -39,7 +39,7 @@
 /*!
  * LoRaWAN confirmed messages
  */
-#define LORAWAN_CONFIRMED_MSG_ON                    true
+#define LORAWAN_CONFIRMED_MSG_ON                    false
 
 /*!
  * LoRaWAN Adaptive Data Rate
@@ -78,7 +78,7 @@
 /*!
  * LoRaWAN application port
  */
-#define LORAWAN_APP_PORT                            15
+#define LORAWAN_APP_PORT                            10
 
 /*!
  * User application data buffer size
@@ -87,7 +87,7 @@
 #define LORAWAN_APP_DATA_SIZE                       6
 
 #else
-#define LORAWAN_APP_DATA_SIZE                       1
+#define LORAWAN_APP_DATA_SIZE                       5
 
 #endif
 
@@ -288,6 +288,16 @@
 {
     switch( port )
     {
+    case 10:
+        {  
+//            uint32_t tempValue = ( uint32_t )( 12345678 );
+            AppData[0] = 0;
+            AppData[1] = 0x12;
+            AppData[2] = 0x34;
+            AppData[3] = 0x56;
+            AppData[4] = 0x78;
+        }
+        break;
     case 15:
         {
             AppData[0] = AppLedStateOn;
@@ -565,6 +575,7 @@
             }
             break;
         case 224:
+        case 10:
             if( ComplianceTest.Running == false )
             {
                 // Check compliance test enable command (i)