How to determine if the device is online/offline?
I am working on a IOT device and the backend on NodeJs, I am pinging my server every 15 secs to determine the device status. But I want to know a mechanism to update database when there is no ping from device after 15 secs. Thanks in Advance