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/ComplianceTest.cpp
- Revision:
- 10:7f990e019807
- Parent:
- 0:69f2e28d12c1
- Child:
- 11:d91e8e471ad0
--- a/app/ComplianceTest.cpp Wed Jun 08 22:47:42 2016 +0000 +++ b/app/ComplianceTest.cpp Fri Jul 29 05:04:03 2016 +0000 @@ -14,6 +14,7 @@ */ #include "ComplianceTest.h" +#include "LoRaDeviceStateProc.h" void PrepareComplianceTestFrame( McpsIndication_t *McpsIndication ) @@ -82,6 +83,33 @@ LoRaMacMlmeRequest( &mlmeReq ); } break; + case 6: // (ix) + { + /* + MlmeReq_t mlmeReq; + + mlmeReq.Type = MLME_JOIN; + + mlmeReq.Req.Join.DevEui = DevEui; + mlmeReq.Req.Join.AppEui = AppEui; + mlmeReq.Req.Join.AppKey = AppKey; + + LoRaMacMlmeRequest( &mlmeReq ); + */ + + IsTxConfirmed = LORAWAN_CONFIRMED_MSG_ON; + AppPort = LORAWAN_APP_PORT; + AppDataSize = LORAWAN_APP_DATA_SIZE; + ComplianceTest.DownLinkCounter = 0; + ComplianceTest.Running = false; + + MibRequestConfirm_t mibReq; + mibReq.Type = MIB_ADR; + mibReq.Param.AdrEnable = LORAWAN_ADR_ON; + LoRaMacMibSetRequestConfirm( &mibReq ); + DeviceState = DEVICE_STATE_INIT; + } + break; default: break; }