adding error event with error code

This commit is contained in:
David Cermak committed 2019-07-03 08:49:54 +02:00
1 parent e85430def7
commit 65bf2255d7
3 files changed
+9

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ typedef struct {
int topic_len; /*!< Length of the topic for this event asociated with this event */
int msg_id; /*!< MQTT messaged id of message */
int session_present; /*!< MQTT session_present flag for connection event */
esp_err_t last_err; /*!< MQTT last error captured in transports */
} esp_mqtt_event_t;
typedef esp_mqtt_event_t *esp_mqtt_event_handle_t;
+1
View File
@@ -36,6 +36,7 @@
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
// Features supported in 4.0
#define MQTT_SUPPORTED_FEATURE_WS_SUBPROTOCOL
#define MQTT_SUPPORTED_FEATURE_TRANSPORT_ERR_REPORTING
#endif
#endif