mQ Branch for NA mote testing
Dependencies: LoRaWAN-lib SX1272Lib-mQ lib_gps lib_mma8451q lib_mpl3115a2 mbed
Fork of LoRaWAN-NAMote72-Application-Demo by
Diff: app/Common.h
- Revision:
- 18:18408c3c2d0c
- Parent:
- 9:617844f7fdb1
--- a/app/Common.h Sun Apr 16 23:12:47 2017 +0000 +++ b/app/Common.h Mon Apr 24 13:47:27 2017 +0000 @@ -15,21 +15,24 @@ #ifndef __COMMON_H__ #define __COMMON_H__ -#include "Comissioning.h" +#include "Commissioning.h" #include "board.h" /*! * User application data buffer size */ -#define LORAWAN_APP_DATA_MAX_SIZE 64 +#define LORAWAN_APP_DATA_MAX_SIZE 242 /*! * Current network ID */ #define LORAWAN_NETWORK_ID ( uint32_t )0 +/* + * Indicates if the end-device is currently activated by OTAA procedure. + */ +extern bool Otaa; -#if( OVER_THE_AIR_ACTIVATION != 0 ) /*! * Over the Air Activation */ @@ -38,7 +41,7 @@ extern uint8_t AppEui[]; extern uint8_t AppKey[]; -#else +#if( OVER_THE_AIR_ACTIVATION == 0 ) /*! * Activation by Personalization */ @@ -69,4 +72,4 @@ extern TimerEvent_t TxNextPacketTimer; // Timer to handle the application data transmission duty cycle -#endif // __COMMON_H__ \ No newline at end of file +#endif // __COMMON_H__