def updateBatteryTemperature(self, temperature):
    with self.lock:
        self.batteryTemperature = temperature
        self.lastMessageTime = float(time.time())
def updateBatteryTemperature(self, temperature):
    with self.lock:
        self.batteryTemperature = temperature
        self.lastMessageTime = float(time.time())