espressif / esp-mqtt

ESP32 mqtt component
Apache License 2.0
603 stars 255 forks source link

MQTT5 packet support (IDFGH-7572) #224

Closed KonssnoK closed 2 years ago

KonssnoK commented 2 years ago

This is an ongoing pull request

New features:

Fixes:

TODO:

TOCHECK:

Note A commit on esp-idf will be required as well, currently: https://github.com/KonssnoK/esp-idf/commit/37cd0998e324d3963b3cc72bf69bbd9e78288247

KonssnoK commented 2 years ago

rebased on top of master and squashed implementation commits into a single one

euripedesrocha commented 2 years ago

Hi @KonssnoK thank you for your contribution. We have an internal implementation of MQTT5 that was recently merged. Could you please take a look and see if you miss some feature on our implementation?

AxelLin commented 2 years ago

@euripedesrocha I'm using esp-idf (master). The esp-mqtt submodule alerady includes the mqtt5 related code but I cannot test mqtt5 because there is no config option to enable it. i.e. CONFIG_MQTT_PROTOCOL_5 is always not defined.

euripedesrocha commented 2 years ago

@euripedesrocha I'm using esp-idf (master). The esp-mqtt submodule alerady includes the mqtt5 related code but I cannot test mqtt5 because there is no config option to enable it. i.e. CONFIG_MQTT_PROTOCOL_5 is always not defined.

Hi @AxelLin, there is an idf MR that should be merged soon (there is a trend on our interactions here :) ), it also contains an example of MQTT5 usage.

ESP-YJM commented 2 years ago

Hi @AxelLin , MQTT5 example in idf has been merged. You can test it with newest IDF master branch. If you have any questions during the test, please feel free to ask.

david-cermak commented 2 years ago

Closing as MQTTv5 was merged in https://github.com/espressif/esp-idf/commit/5a7b17ff7d39e3768a1ee5a7fe6b04f8dca7f3be and the examples are available in https://github.com/espressif/esp-idf/tree/release/v5.0/examples/protocols/mqtt5

KonssnoK commented 2 years ago

sorry for not keeping up with the discussion, i'm currently working on other stuff, i'll pick up the MQTT5 topic as soon as necessary.

On the PR on IDF, is there any plan to backport to v4.4 or is it to be considered as part of v5.0?