Config: Add a new option to disable publishing when disconnected

Related https://github.com/espressif/esp-mqtt/pull/177
This commit is contained in:
David Cermak
2020-12-06 14:08:45 +01:00
parent dc7fd5c0b1
commit f44dcb1c26
3 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,8 @@
#define MQTT_MSG_ID_INCREMENTAL CONFIG_MQTT_MSG_ID_INCREMENTAL
#define MQTT_SKIP_PUBLISH_IF_DISCONNECTED CONFIG_MQTT_SKIP_PUBLISH_IF_DISCONNECTED
#if CONFIG_MQTT_BUFFER_SIZE
#define MQTT_BUFFER_SIZE_BYTE CONFIG_MQTT_BUFFER_SIZE
#else