Disconnect from MQTT and reconnect when changing settings

This commit is contained in:
Robert Strouse 2023-06-10 10:03:48 -07:00
parent 07255fc7f0
commit d91535c9ac
6 changed files with 52 additions and 7 deletions

1
MQTT.h
View file

@ -13,6 +13,7 @@ class MQTTClass {
bool connect();
bool disconnect();
bool connected();
void reset();
bool publish(const char *topic, const char *payload);
bool publish(const char *topic, JsonDocument &doc);
bool publish(const char *topic, JsonArray &arr);