Exemple #1
0
 def __init__(self, transport_url, user_role, credentials):
     self._transport_url = transport_url
     self._user_role = user_role
     self._credentials = credentials
     self._transport_name = DeviceHive.transport_name(self._transport_url)
     self._entity_ids = defaultdict(list)
     self._is_handle_timeout = False
Exemple #2
0
 def __init__(self, transport_url, user_role, credentials,
              timeout_sleep_time=1e-6):
     self._transport_url = transport_url
     self._user_role = user_role
     self._credentials = credentials
     self._timeout_sleep_time = timeout_sleep_time
     self._transport_name = DeviceHive.transport_name(self._transport_url)
     self._entity_ids = defaultdict(list)
    def __init__(self, transport_url, user_role, credentials):
        self._transport_url = transport_url
        self._user_role = user_role
        self._credentials = credentials
        self._transport_name = DeviceHive.transport_name(self._transport_url)
        self._entity_ids = defaultdict(list)
        self._is_handle_timeout = False

        assert self.http_transport, 'Plugin API available only by HTTP'
Exemple #4
0
 def __init__(self, transport_url, refresh_token):
     self._transport_url = transport_url
     self._refresh_token = refresh_token
     self._transport_name = DeviceHive.transport_name(self._transport_url)