Merge pull request #531 from henrikekblad/FixMQTTPresentation
Fix #449, Fix #507
This commit is contained in:
@@ -146,6 +146,8 @@ bool reconnectMQTT() {
|
|||||||
#endif
|
#endif
|
||||||
)) {
|
)) {
|
||||||
debug(PSTR("MQTT connected\n"));
|
debug(PSTR("MQTT connected\n"));
|
||||||
|
if (presentation)
|
||||||
|
presentation();
|
||||||
// Once connected, publish an announcement...
|
// Once connected, publish an announcement...
|
||||||
//_MQTT_client.publish("outTopic","hello world");
|
//_MQTT_client.publish("outTopic","hello world");
|
||||||
// ... and resubscribe
|
// ... and resubscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user