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
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'
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)