code: def is_connected(self, use_cached=True):
          
          device_json = self.get_device_json(use_cached)
          return int(device_json.get("dpConnectionStatus")) > 0
docs: Return True if the device is currrently connect and False if not