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/Config.h
- Revision:
- 6:f8194e691dd4
- Parent:
- 5:6ffeac53b7cb
- Child:
- 7:92f4f419f91f
--- a/app/Config.h Wed Jun 08 01:40:42 2016 +0000 +++ b/app/Config.h Wed Jun 08 22:06:26 2016 +0000 @@ -36,6 +36,11 @@ #define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 5000000 // value in us /*! + * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX + */ +#define APP_TX_DUTYCYCLE 5000000 // value in us + +/*! * LoRaWAN confirmed messages * \remark 1 : Confirmed messages enabled. Must receive ACK from network server 0 : Confirmed messages disabled. @@ -50,9 +55,15 @@ #define LORAWAN_ADR_ON 0 /*! + * Default mote datarate + * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps + */ +#define LORAWAN_DEFAULT_DATARATE DR_0 + +/*! * LoRaWAN application port */ -#define LORAWAN_APP_PORT 7 +#define LORAWAN_APP_PORT 5 /*! * LoRaWAN User defined Tx Power @@ -67,17 +78,6 @@ ====================================================*/ /*! - * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX - */ -#define APP_TX_DUTYCYCLE 5000000 // value in us - -/*! - * Default mote datarate - * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps - */ -#define LORAWAN_DEFAULT_DATARATE DR_0 - -/*! * User application data buffer size */ #define LORAWAN_APP_DATA_SIZE 11 @@ -90,17 +90,6 @@ ====================================================*/ /*! - * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX - */ -#define APP_TX_DUTYCYCLE 10000000 // value in us - -/*! - * Default mote datarate - * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps - */ -#define LORAWAN_DEFAULT_DATARATE DR_0 - -/*! * User application data buffer size */ #define LORAWAN_APP_DATA_SIZE 2 @@ -113,20 +102,23 @@ ====================================================*/ /*! - * Defines the application data transmission periodicity. It is the time between RX1/RX2 and next TX + * User application data buffer size */ -#define APP_TX_DUTYCYCLE 5000000 // value in us +#define LORAWAN_APP_DATA_SIZE 11 -/*! - * Default mote datarate - * \remark DR_0 : 980 bps; DR_1 : 1760 bps; DR_2 : 3125 bps; DR_3 : 5470 bps; DR_4 : 12500 bps - */ -#define LORAWAN_DEFAULT_DATARATE DR_0 +/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ + +#elif ( LORAWAN_APP_PORT == 11) +/*==================================================== + PUSH BUTTON DEMO (PORT 11) +====================================================*/ /*! * User application data buffer size */ -#define LORAWAN_APP_DATA_SIZE 11 +#define LORAWAN_APP_DATA_SIZE 2 + +/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ #endif