MQTT Client Retain Feature (#793)

Optionally allow MQTT client to publish specific messages with
the retain flag set.

default/current behavior should not be impacted.
This commit is contained in:
Dustin
2017-03-21 14:47:07 +01:00
committed by Henrik Ekblad
parent 61a415c422
commit ef42b3b534
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -805,6 +805,12 @@
#endif
#endif
/**
* @def MY_MQTT_CLIENT_PUBLISH_RETAIN
* @brief Enables MQTT client to set the retain flag when publishing specific messages.
*/
//#define MY_MQTT_CLIENT_PUBLISH_RETAIN
// Static ip address of gateway (if this is disabled, DHCP will be used)
//#define MY_IP_ADDRESS 192,168,178,66
@@ -982,4 +988,5 @@
#define MY_RFM95_ATC_MODE_DISABLED
#define MY_RFM95_RST_PIN
#define MY_INDICATION_HANDLER
#define MY_MQTT_CLIENT_PUBLISH_RETAIN
#endif