My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to determine if the device is online/offline?

<Chakravarthy />'s photo
<Chakravarthy />
·Feb 11, 2017

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