code: def _connected(service):
      '''
      Verify if a connman service is connected
      '''
      state = pyconnman.ConnService(os.path.join(SERVICE_PATH, service)).get_property('State')
      return state == 'online' or state == 'readyf _connected(service):
      '''
      Verify if a connman service is connected
      '''
      state = pyconnman.ConnService(os.path.join(SERVICE_PATH, service)).get_property('State')
      return state == 'online' or state == 'ready'
docs: Verify if a connman service is connected