Skip to content

Commit aa65772

Browse files
author
Daniel Jäckle
committed
Issue(#59): Add the possibility to set the uplink and downlink counter.
1 parent a472ac0 commit aa65772

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/mac/LoRaMac.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,6 +3337,16 @@ LoRaMacStatus_t LoRaMacMibSetRequestConfirm( MibRequestConfirm_t *mibSet )
33373337
}
33383338
break;
33393339
}
3340+
case MIB_UPLINK_COUNTER:
3341+
{
3342+
UpLinkCounter = mibSet->Param.UpLinkCounter;
3343+
break;
3344+
}
3345+
case MIB_DOWNLINK_COUNTER:
3346+
{
3347+
DownLinkCounter = mibSet->Param.DownLinkCounter;
3348+
break;
3349+
}
33403350
default:
33413351
status = LORAMAC_STATUS_SERVICE_UNKNOWN;
33423352
break;

src/mac/LoRaMac.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,8 +987,8 @@ typedef struct sMlmeConfirm
987987
* \ref MIB_CHANNELS_DATARATE | YES | YES
988988
* \ref MIB_CHANNELS_DEFAULT_DATARATE| YES | YES
989989
* \ref MIB_CHANNELS_TX_POWER | YES | YES
990-
* \ref MIB_UPLINK_COUNTER | YES | NO
991-
* \ref MIB_DOWNLINK_COUNTER | YES | NO
990+
* \ref MIB_UPLINK_COUNTER | YES | YES
991+
* \ref MIB_DOWNLINK_COUNTER | YES | YES
992992
* \ref MIB_MULTICAST_CHANNEL | YES | NO
993993
*
994994
* The following table provides links to the function implementations of the

0 commit comments

Comments
 (0)