added option to overide MQTT retain (e.g. in shower time and heartbeat messages)

This commit is contained in:
proddy
2019-10-19 09:35:37 +02:00
parent 0ac4ad3f37
commit 00e707ee21
3 changed files with 14 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
#ifndef MyESP_h
#define MyESP_h
#define MYESP_VERSION "1.2.11"
#define MYESP_VERSION "1.2.12"
#include <ArduinoJson.h>
#include <ArduinoOTA.h>
@@ -275,6 +275,7 @@ class MyESP {
bool mqttSubscribe(const char * topic);
void mqttUnsubscribe(const char * topic);
bool mqttPublish(const char * topic, const char * payload);
bool mqttPublish(const char * topic, const char * payload, bool retain);
void setMQTT(mqtt_callback_f callback);
// OTA