def updateBatterySOC(self, soc):
    with self.lock:
        self.batterySoc = soc
        self.lastMessageTime = float(time.time())
def updateBatterySOC(self, soc):
    with self.lock:
        self.batterySoc = soc
        self.lastMessageTime = float(time.time())