how to check device online or offline ?

Im using rest api. i wanna check device online or offline ? how can i do ?

LoRaWAN is an asynchronous protocol for uplinks. That means that you can not really say that a device is “online”. Usually, devices are sending periodic state frames. You could check the last transmission date with the API and trigger an alert in case you exceed the periodic frame timeframe.


thank you for helping