STM32WLE and LoRa: Best way to detect Gateway down and make a new join
Hi,
We have encountered the following situation:
Once the equipment is Joined to the network, if by chance there is a power cut that affects the Gateway and it restarts, we have realized that we stop receiving data from the device.
Our Device can be configured with or without Confirmation ACK.
- In the case that it is configured without confirmation ACK.
We can't know whether there is a power cut and we stop receiving data.
What is the correct way to detect and treat this situation?
- In the case that it is configured with confirmation ACK.
We can check if after an uplink we receive the ACK or not, to be able to treat it.
We checked in the OnTxData Callback if the MSG_Type was LORAMAC_HANDLER_CONFIRMED_MSG and in that case if AckReceived was 0 we know that the Gateway is not responding with the ACK to the Uplink, and in that case we Reset the device to Force a Join Request.
Is it the correct way to detect and treat this situation?
Best Regards
