Detect if a device is either online or offline
It would be nice to have an API to be called that detects wether a device is online or offline, so that we can do further actions only if a device is actually connected to the internet and ready to perform actions