azure-iot-sdk-c icon indicating copy to clipboard operation
azure-iot-sdk-c copied to clipboard

What is the QoS when using MQTT as transport?

Open bertulli opened this issue 8 months ago • 1 comments

Hi, thank you for your work. I'm incorporating the Azure IoT SDK into one of our company project, and I needed to know what is the quality of service level implemented by MQTT in the SDK. Searching in the docs / .md files, I found no clear answer. However, I found some issue answers that seems to clarify that the QoS for the SDK is 1 (at least once), and that the SDK doesn't support QoS 2 (and I think neither QoS 0?). However searching in the source code (specifically in iothub_client/src/iothubtransport_mqtt_common.c) I see references to QoS 0 sometimes. So I have two questions:

  1. for the "user" data (that is, messages created and sent using the SDK, can you confirm the QoS is 1 (at least once)?
  2. why isn't the QoS specified in the docs? I feel like it could be of interested for other users. Maybe it could be added in the "Key features > Device client SDK" section of the README?

Thank you for your time!

bertulli avatar Jun 17 '24 15:06 bertulli