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: SX127x lorawan1v1
Fork of LoRaWAN-grove-cayenne by
Diff: sensorDemoVT100.cpp
- Revision:
- 1:3c1d13a0489e
- Parent:
- 0:62e456e60083
- Child:
- 2:da3c8d5b3f49
--- a/sensorDemoVT100.cpp Wed Feb 28 14:06:17 2018 -0800
+++ b/sensorDemoVT100.cpp Thu Mar 01 17:29:50 2018 +0000
@@ -896,9 +896,9 @@
MibRequestConfirm_t mibReq;
vt.SetCursorPos(ROW_MLME_IND, 1);
+ Mlme_to_string(MlmeIndication->MlmeIndication, str);
+ vt.printf("MlmeIndication %s %08x ", str, RCC->CSR);
LoRaMacEventInfoStatus_to_string(MlmeIndication->Status, str);
- Mlme_to_string(MlmeIndication->MlmeIndication, str);
- vt.printf("MlmeIndication %s ", str);
if (MlmeIndication->Status != LORAMAC_EVENT_INFO_STATUS_OK)
vt.printf("\e[31m%s \e[0m \e[K", str);
else
@@ -1085,13 +1085,19 @@
{
case DEVICE_STATE_INIT:
{
+ LoRaMacStatus_t status = LoRaMacInitialization( &LoRaMacPrimitives, &LoRaMacCallbacks );
+ if (LORAMAC_STATUS_OK != status) {
+ char str[48];
+ LoRaMacStatus_to_string(status, str);
+ vt.SetCursorPos(1, 1);
+ vt.printf("MacInit: %s\e[K", str);
+ for (;;) asm("nop");
+ }
+
pwm.period(1.0 / 60);
cayenne_ack_ch = -1;
c_ch = 0xff;
- d8.mode(PullDown);
- if (LORAMAC_STATUS_OK != LoRaMacInitialization( &LoRaMacPrimitives, &LoRaMacCallbacks )) {
- return -1;
- }
+ d8.mode(PullDown);
mibReq.Type = MIB_ADR;
mibReq.Param.AdrEnable = LORAWAN_ADR_ON;
