Skip to content

Commit

Permalink
Switch to Class A when the MAC performs a JOIN request to ensure that…
Browse files Browse the repository at this point in the history
… the MAC is in Class A.
  • Loading branch information
mluis1 committed Jul 2, 2019
1 parent 1acc148 commit 198a829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2341,6 +2341,8 @@ LoRaMacStatus_t SendReJoinReq( JoinReqIdentifier_t joinReqType )
{
case JOIN_REQ:
{
SwitchClass( CLASS_A );

MacCtx.TxMsg.Type = LORAMAC_MSG_TYPE_JOIN_REQUEST;
MacCtx.TxMsg.Message.JoinReq.Buffer = MacCtx.PktBuffer;
MacCtx.TxMsg.Message.JoinReq.BufSize = LORAMAC_PHY_MAXPAYLOAD;
Expand Down

0 comments on commit 198a829

Please sign in to comment.