def getUniq(self,req,dt): data=json.loads(dt.decode("utf-8")) if not isinstance(dt,dict) else dt if data["uniq"]=="not_yet_set": return if data["uniq"]: self.uniq=data["uniq"] Clock.unschedule(self.checkUniq) Clock.schedule_interval(self.listenMesage, 4)
def startClock(self): Clock.schedule_interval(self.checkUniq,1)