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: X_NUCLEO_IKS01A2 driver_mbed_TH02 mbed LoRaWAN-lib-v1_0_1 SX1272Lib
Fork of Training-Aug2018-SX1272-X-NUCLEO-IKS01A2 by
Diff: app/LoRaEventProc.cpp
- Revision:
- 10:bba416e2c3e1
- Parent:
- 9:a47750bce9f8
diff -r a47750bce9f8 -r bba416e2c3e1 app/LoRaEventProc.cpp
--- a/app/LoRaEventProc.cpp Sun Aug 12 06:09:53 2018 +0000
+++ b/app/LoRaEventProc.cpp Sun Aug 19 20:08:35 2018 +0000
@@ -104,7 +104,7 @@
//Point the pointer to position index of Tx Buffer
LoRaApp.ApplicationPtrPos( ptrIndex );
- AppCase = AppCase > 3 ? 0 : AppCase;
+ AppCase = AppCase > 4 ? 0 : AppCase;
while( 1 ) {
switch( AppCase ) {
@@ -169,6 +169,20 @@
break;
}
+
+ case 4: {
+ tmp[0] = 4;
+ tmp[1] = 134; // Data Type Accl: 113
+ LoRaApp.ApplicationAppendData( tmp, 2 );
+ /*!
+ * Read Accelerometer
+ */
+ LoRaApp.ApplicationCall( AppGyro ); // Generate Accelerometer data bytes
+
+ AppSize += maxLPPsize[AppCase];
+
+ break;
+ }
}
AppCase++;
@@ -343,10 +357,7 @@
*/
void TxEvent( void )
{
- int blinkTime = 25000;
- // Blink Red LED for 25msec
- //BlinkLED( Red, blinkTime );
}
void RxEvent()
