mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
Added new parameter ckot (query type: firmware OTA, app OTA or both).
Currently unused.
This commit is contained in:
parent
68878495cd
commit
ae756192e4
@ -60,6 +60,7 @@ class FotaCheck:
|
||||
RTD = default_enum("RTD", ["UNROOTED", "ROOTED"])
|
||||
CHNL = default_enum("CHNL", ["3G", "WIFI"])
|
||||
CLTP = default_enum("CLTP", {"MOBILE": 10, "DESKTOP": 2010})
|
||||
CKOT = default_enum("CKOT", ["ALL", "AOTA_ONLY", "FOTA_ONLY"])
|
||||
|
||||
def __init__(self):
|
||||
self.serid = "543212345000000"
|
||||
@ -70,6 +71,7 @@ class FotaCheck:
|
||||
self.ftype = "Firmware"
|
||||
self.cltp = self.CLTP.MOBILE
|
||||
self.cktp = self.CKTP.MANUAL
|
||||
self.ckot = self.CKOT.ALL
|
||||
self.rtd = self.RTD.UNROOTED
|
||||
self.chnl = self.CHNL.WIFI
|
||||
self.g2master = None
|
||||
@ -147,6 +149,7 @@ class FotaCheck:
|
||||
params["rtd"] = self.rtd.value
|
||||
params["chnl"] = self.chnl.value
|
||||
#params["osvs"] = self.osvs
|
||||
#params["ckot"] = self.ckot.value
|
||||
|
||||
last_response = None
|
||||
for num_try in range(0, max_tries):
|
||||
|
Loading…
Reference in New Issue
Block a user