LoRaMac-node
LoRaMac-node copied to clipboard
LoRaMacCommandsRemoveStickyAnsCmds drops every sticky MAC including MOTE_MAC_REKEY_IND
This is related to the feature/5.0.0 branch where v1.1.1 of protocol implemented.
LoRaMacCommands.c: 451 LoRaMacCommandStatus_t LoRaMacCommandsRemoveStickyAnsCmds( void )
This function drops every sticky MAC command from the context, and this happens right after we successfully sent this MAC to uplink, but there are sticky commands which are not answers, removing it in this fashion will violate the protocol and possibly break security, look e.g MOTE_MAC_REKEY_IND. In this case we should wait until the server replies with RekeyConf and
repeat sending RekeyInd if it doesn't.