used event loop only if defined in supported features (enabled by macros) for backward compatibily with older IDFs

This commit is contained in:
David Cermak
2019-06-06 17:00:03 +02:00
parent 5afe3e6b24
commit edd67e1c8c
3 changed files with 28 additions and 2 deletions
+7 -2
View File
@@ -27,10 +27,15 @@
*/
#ifdef ESP_IDF_VERSION
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 3, 0)
// Features supported from 3.3
#define MQTT_SUPPORTED_FEATURE_EVENT_LOOP
#endif
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
// Features supported in 4.0
#define MQTT_SUPPORTED_FEATURE_WS_SUBPROTOCOL
#endif
#endif