publish battery drain and max current

This commit is contained in:
technyon
2022-03-27 19:02:27 +02:00
parent 4554d11caa
commit 9a2dd19f63
4 changed files with 31 additions and 12 deletions

View File

@@ -109,7 +109,7 @@ void Nuki::updateBatteryState()
Serial.print(F("Crit. State: ")); Serial.println(_batteryReport.criticalBatteryState);
Serial.print(F("Lock Dist: ")); Serial.println(_batteryReport.lockDistance);
_network->publishBatteryVoltage((float)_batteryReport.batteryVoltage / (float)1000);
_network->publishBatteryReport(_batteryReport);
}