Skip to content

Commit 198a829

Browse files
committed
Switch to Class A when the MAC performs a JOIN request to ensure that the MAC is in Class A.
1 parent 1acc148 commit 198a829

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mac/LoRaMac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,8 @@ LoRaMacStatus_t SendReJoinReq( JoinReqIdentifier_t joinReqType )
23412341
{
23422342
case JOIN_REQ:
23432343
{
2344+
SwitchClass( CLASS_A );
2345+
23442346
MacCtx.TxMsg.Type = LORAMAC_MSG_TYPE_JOIN_REQUEST;
23452347
MacCtx.TxMsg.Message.JoinReq.Buffer = MacCtx.PktBuffer;
23462348
MacCtx.TxMsg.Message.JoinReq.BufSize = LORAMAC_PHY_MAXPAYLOAD;

0 commit comments

Comments
 (0)