def processBatteryDataMessage(self, label, voltage, capacity, soc=None, consumption=None, temperature=None):
    n = self.getNode(label)
    if (n != None):
        n.updateBatteryVoltage(voltage)
        n.updateBatteryCapacity(capacity)
        n.updateBatterySOC(soc)
        n.updateBatteryConsumption(consumption)
        n.updateBatteryTemperature(temperature)
def processBatteryDataMessage(self, label, voltage, capacity, soc=None, consumption=None, temperature=None):
    n = self.getNode(label)
    if (n != None):
        n.updateBatteryVoltage(voltage)
        n.updateBatteryCapacity(capacity)
        n.updateBatterySOC(soc)
        n.updateBatteryConsumption(consumption)
        n.updateBatteryTemperature(temperature)