From 166474b9f1a7cbd77a98accde38ef1000bd330e3 Mon Sep 17 00:00:00 2001 From: devsaurus Date: Mon, 8 Oct 2018 21:29:24 +0200 Subject: [PATCH] clarify unsupported transport modes --- docs/en/modules/mqtt.md | 6 ++++-- sdkconfig.defaults | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/en/modules/mqtt.md b/docs/en/modules/mqtt.md index ee3bb6a4..8cf18edf 100644 --- a/docs/en/modules/mqtt.md +++ b/docs/en/modules/mqtt.md @@ -1,10 +1,12 @@ # MQTT Module | Since | Origin / Contributor | Maintainer | Source | | :----- | :-------------------- | :---------- | :------ | -| 2015-01-23 | [Stephen Robinson](https://github.com/esar/contiki-mqtt), [Tuan PM](https://github.com/tuanpmt/esp_mqtt) | [Vowstar](https://github.com/vowstar) | [mqtt.c](../../../app/modules/mqtt.c)| +| 2018-10-08 | [Tuan PM](https://github.com/tuanpmt/esp_mqtt), [Espressif](https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/protocols/mqtt.html) | | [mqtt.c](../../../components/modules/mqtt.c)| +The client supports version 3.1 and 3.1.1 of the [MQTT](https://en.wikipedia.org/wiki/MQTT) protocol. Make sure that the correct version is set with `make menuconfig` -> "Component config" -> "ESP-MQTT Configurations" -> "Enable MQTT protocol 3.1.1". -The client adheres to version 3.1.1 of the [MQTT](https://en.wikipedia.org/wiki/MQTT) protocol. Make sure that your broker supports and is correctly configured for version 3.1.1. The client is backwards incompatible with brokers running MQTT 3.1. +!!! note "Unsupported transport modes" + Even though the MQTT configuration offers the transport modes Websocket and Websocket Secure, they are currently not supported by the `mqtt` module. ## mqtt.Client() diff --git a/sdkconfig.defaults b/sdkconfig.defaults index dfecd6ba..c7923b28 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -22,8 +22,7 @@ CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED=y # Enable panic handler for task wdt to reset the firmware upon wdt timeout CONFIG_TASK_WDT_PANIC=y -# Disable the MQTT client from esp-idf, we have our own implementation atm -CONFIG_MQTT_PROTOCOL_311=n +# Disable advanced features by default CONFIG_MQTT_TRANSPORT_SSL=n CONFIG_MQTT_TRANSPORT_WEBSOCKET=n CONFIG_MQTT_USE_CUSTOM_CONFIG=n