This topic provides answers to some commonly asked questions about the usage scenarios of the ApsaraMQ for MQTT cloud SDK.

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

If you send messages by using the cloud SDK, you can consume messages by using only the cloud SDK.

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

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

Message Queue for MQTT does not support queries for the messages that are sent by using the cloud SDK.

Why is the connection timeout error returned when the cloud SDK cannot run as expected?

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.

Does the Cloud SDK support the configuration of QoS and cleanSession?

No, the Cloud SDK does not support the configuration of QoS and cleanSession. The semantic of cleanSession requires that messages arrive at the client at least once if you use the cloud SDK to send messages.