From ae756192e403aad310b5299f799165ba21004f70 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Mon, 30 Oct 2017 23:17:45 +0100 Subject: [PATCH] Added new parameter ckot (query type: firmware OTA, app OTA or both). Currently unused. --- tcllib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcllib.py b/tcllib.py index a3c4785..5ca388d 100644 --- a/tcllib.py +++ b/tcllib.py @@ -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):