Adding ESP32 core selection for MQTT task (#53)

* Adding core selection in KConfig and starting thread with those parameters

* Updating for code consistency
This commit is contained in:
Tony
2018-07-25 13:58:38 +07:00
committed by Tuan
parent c26f1dc607
commit da573b482b
3 changed files with 41 additions and 4 deletions
+13
View File
@@ -59,6 +59,19 @@
#define MQTT_WSS_DEFAULT_PORT 443
#endif
#define MQTT_CORE_SELECTION_ENABLED CONFIG_MQTT_TASK_CORE_SELECTION_ENABLED
#ifdef CONFIG_MQTT_USE_CORE_0
#define MQTT_TASK_CORE 0
#else
#ifdef CONFIG_MQTT_USE_CORE_1
#define MQTT_TASK_CORE 1
#else
#define MQTT_TASK_CORE 0
#endif
#endif
#define MQTT_ENABLE_SSL CONFIG_MQTT_TRANSPORT_SSL
#define MQTT_ENABLE_WS CONFIG_MQTT_TRANSPORT_WEBSOCKET
#define MQTT_ENABLE_WSS CONFIG_MQTT_TRANSPORT_WEBSOCKET_SECURE