Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LoRaWAN-lib SX1272Lib
Diff: app/main.cpp
- Revision:
- 8:cfe39840b9fb
- Parent:
- 7:5077515c163b
- Child:
- 9:07c94dd6dc51
--- a/app/main.cpp Mon Apr 24 13:29:34 2017 +0000
+++ b/app/main.cpp Wed Dec 05 08:47:37 2018 +0000
@@ -34,7 +34,7 @@
/*!
* Default datarate
*/
-#define LORAWAN_DEFAULT_DATARATE DR_0
+#define LORAWAN_DEFAULT_DATARATE DR_5
/*!
* LoRaWAN confirmed messages
@@ -290,7 +290,14 @@
{
case 15:
{
- AppData[0] = AppLedStateOn;
+ //AppData[0] = AppLedStateOn;
+ AppData[0] = 0xAA;
+ AppData[8] = 0xAA;
+ AppData[10] = 23;
+ AppData[44] = 99;
+ AppData[62] = 0xCC;
+ printf("%x\n",AppData[55]);
+
if( IsTxConfirmed == true )
{
AppData[1] = LoRaMacDownlinkStatus.DownlinkCounter >> 8;
@@ -925,7 +932,7 @@
SerialDisplayUpdateUplinkAcked( false );
SerialDisplayUpdateDonwlinkRxData( false );
PrepareTxFrame( AppPort );
-
+ printf("%x\n",AppData[55]);
NextTx = SendFrame( );
}
if( ComplianceTest.Running == true )