10bba73d21a06ef5ba85bcf6039b813d424f9784
Updates esp-mqtt reference to include fixes below related mainly to: * configuration update (disable keepalive, network timeout) * minor fixes (size_t for all sizes, unbalanced lock, api for outbox-size) * extended error handle to include socket's errno Closes https://github.com/espressif/esp-idf/issues/5906 Config: Added config value to disable keepalive mechanism esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/8562437c8a50754998f7b5484773851fd1c42388 Related https://github.com/espressif/esp-mqtt/issues/179 Added esp_mqtt_client_get_outbox_size API esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/0a1d9d0300335ca98dd1fed8d2ec2411145877b0 Related https://github.com/espressif/esp-mqtt/pull/178 mqtt_outbox: Removed unused retry_count field from outbox_item_t esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/673086e13a7ff141929ddc9739da3d197f8a5720 config: Fixed typo for configuring OUTBOX_EXPIRED_TIMEOUT_MS esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/259baaec9671ea3c32afa3c27a1196fce5646974 Fixed missing MQTT_API_UNLOCK in esp_mqtt_client_stop error path esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/845c2a3a1e112af5dbe5f3a9ee8f6adb92a03757 Related https://github.com/espressif/esp-mqtt/issues/173 Related https://github.com/espressif/esp-mqtt/pull/174 Extended mqtt error handle to capture transport's socket errno (IDF v4.3+) esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/23c8e1ecf5681d60032f8405990116a589290b57 Config: Added configuration value to set network timeout esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/a03228ac4639eeb324af99dcded44a1f4113d3c3 Related https://github.com/espressif/esp-mqtt/pull/166 Used size_t for all lengths to allow for other architectures esp-mqtt commit: https://github.com/espressif/esp-mqtt/commit/b9db8d90204c7f9a23165630fd74ad621516c0c7
ESP32 MQTT Library
Features
- Based on: https://github.com/tuanpmt/esp_mqtt
- Support MQTT over TCP, SSL with mbedtls, MQTT over Websocket, MQTT over Websocket Secure
- Easy to setup with URI
- Multiple instances (Multiple clients in one application)
- Support subscribing, publishing, authentication, will messages, keep alive pings and all 3 QoS levels (it should be a fully functional client).
How to use
ESP-MQTT is a standard ESP-IDF component. Please refer to instructions in ESP-IDF
Documentation
-
Please refer to the standard ESP-IDF, documentation for the latest version: https://docs.espressif.com/projects/esp-idf/
-
Documentation of ESP-MQTT API: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/protocols/mqtt.html
License
- MQTT Package - Stephen Robinson - contiki-mqtt
- Others @tuanpmt Apache License
Older IDF verisons
For ESP-IDF versions prior to IDFv3.2, please clone as a component of ESP-IDF:
git submodule add https://github.com/espressif/esp-mqtt.git components/espmqtt
and checkout the ESP-MQTT_FOR_IDF_3.1 tag
Languages
C
96.5%
C++
1.7%
Shell
1.1%
CMake
0.7%