MQTT Versions

Amish wrote on July 02, 2019:

The online documentation for AWS FreeRTOS indicates there are two versions for the MQTT library. V1.0 and V2.0. However, in the source files, there are references for v1 and v4. This seems to be an inconsistency.

This example is taken from aws_mqtt_agent.c

  • @brief Stores data to convert between the MQTT v1 subscription callback
  • and the MQTT v4 subscription callback.

Alexa-AWS wrote on July 02, 2019:


MQTT v2.0 and v4 are the same. The different version numbers are used because this is v2.0 of Amazon FreeRTOS MQTT library and v4 of the AWS IoT C-SDK [] MQTT library.

The comment you are referencing is converting between Amazon FreeRTOS v1 and the unified MQTT v2.0/v4 library.

Thanks for pointing this out - it is confusing. I will pass this feedback on and we will think on how to make the unified versioning more clear.


Edited by: Alexa-AWS on Jul 2, 2019 10:41 AM