allow to configure the mqtt path

This commit is contained in:
technyon
2022-04-02 19:10:42 +02:00
parent a6d59af73b
commit 623eccda1e
6 changed files with 98 additions and 24 deletions

View File

@@ -28,6 +28,9 @@ private:
void publishFloat(const char* topic, const float value, const uint8_t precision = 2);
void publishInt(const char* topic, const int value);
void publishBool(const char* topic, const bool value);
void publishString(const char* topic, const char* value);
void buildMqttPath(const char* path, char* outPath);
bool reconnect();
@@ -39,6 +42,7 @@ private:
unsigned long _nextReconnect = 0;
char _mqttBrokerAddr[100] = {0};
char _mqttPath[100] = {0};
void (*_lockActionReceivedCallback)(const char* value) = NULL;
};