def __init__(self, endpoint = "devices", timeout = 2): self.base_url = conf.base_url() self.endpoint = endpoint self.timeout = timeout self.serial_id = self.cpu_info.get_serial() self.full_url = "%s/%s/%s/apps" % (self.base_url, self.endpoint, self.serial_id) def handler(signum, frame): self.stop() signal.signal(signal.SIGINT, handler)
def __init__( self, app_id, endpoint="apps", ): self.base_url = conf.base_url() self.base_path = conf.base_path() self.app_id = app_id self.endpoint = endpoint self.full_url = "%s/%s/%s" % (self.base_url, self.endpoint, self.app_id)
def __init__(self, endpoint="devices", timeout=2): self.base_url = conf.base_url() self.endpoint = endpoint self.timeout = timeout self.serial_id = self.cpu_info.get_serial() self.full_url = "%s/%s/%s/apps" % (self.base_url, self.endpoint, self.serial_id) def handler(signum, frame): self.stop() signal.signal(signal.SIGINT, handler)
def __init__(self, app_id, endpoint = "apps", ): self.base_url = conf.base_url() self.base_path = conf.base_path() self.app_id = app_id self.endpoint = endpoint self.full_url = "%s/%s/%s" % (self.base_url, self.endpoint, self.app_id)