publish battery drain and max current
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user