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

@@ -15,7 +15,7 @@ public:
void update();
void publishKeyTurnerState(const char* state);
void publishBatteryVoltage(const float& value);
void publishBatteryReport(const BatteryReport& batteryReport);
void setLockActionReceived(void (*lockActionReceivedCallback)(const char* value));
@@ -23,6 +23,9 @@ private:
static void onMqttDataReceivedCallback(char* topic, byte* payload, unsigned int length);
void onMqttDataReceived(char*& topic, byte*& payload, unsigned int& length);
void publishFloat(const char* topic, const float value, const uint8_t precision = 2);
void publishInt(const char* topic, const int value);
bool reconnect();
PubSubClient _mqttClient;