All Products
Search
Document Center

ApsaraMQ for MQTT:FAQ about the Cloud SDK

Last Updated:Feb 27, 2026

This topic addresses common questions about using the ApsaraMQ for MQTT cloud SDK.

Does the MQTT instance support the cloud SDK?

The cloud SDK has been supported since November 2021. To use the cloud SDK for an instance that was created earlier, please submit a ticket to request activation.

For more information, see historical release records.

Does the cloud SDK support CleanSession?

The cloud SDK does not support the CleanSession attribute. Regardless of the Quality of Service (QoS) level set by the client, messages are persistently stored after reaching the cloud.

Why am I unable to consume messages after I successfully sent messages using the cloud SDK?

You can use the cloud SDK to send messages and the terminal SDK to consume them, or vice versa. However, using the cloud SDK to both send and consume messages is not supported.

If you send messages using the client SDK, you can consume messages using the client SDK or the cloud SDK.

Why am I unable to query the messages that I sent using the cloud SDK?

You cannot query messages sent by the cloud SDK.

Cloud SDK Fails to Run and Returns a Connection Timeout Error.

Possible cause: The instance endpoint may not be correct. You can check whether you correctly specified it. The endpoints that are used by the cloud SDK are different from the endpoints that are used by the client SDK. For information about how to obtain the endpoints that are used by the cloud SDK, see Endpoints.