|
N20AT Command ManualCopyright © Neoway Technology Co., Ltd 101Parameter : Topic to subscribe to, character string type: QoS grade of the topic, digit, 0-1Return ValueAfter the subscription is successful,+CLOUDSUBACK: After the subscription fails,+CMD ERROR: ExampleAT+CLOUDSUB=/1000146090/Ndevice_T1/neo001,1+CLOUDSUBACK: Subscribe to the topicsuccessfully.AT+CLOUDSUB=/1000146090/Ndevice_T1/neo001,1+ CMD ERROR: <-19>Fail to subscribe to the topic. ACKtimed out.AT+CLOUDSUB=/1000146090/Ndevice_T1/neo001ERRORThe number of parameters wereincorrect.Remarks When subscribing to a topic, the time to get ACK from the service is 10seconds. If the device does not receive ACK within 10 seconds, thesubscription times out. If the device fails to subscribe, it returns +CMD ERROR: , and disconnects to the MQTT server automatically.A new connection is required to set up by sending +CLOUDCONN. The length of the topic does not exceed 128 bytes.13.4 PUBLISH Data:+CLOUDPUBLISH\+PUBLISHDEFAULTDescription Publish data received after subscribing to a topicFormat+CLOUDPUBLISH: ,,,sg>+PUBLISHDEFAULT: ,,,
PreviousNext |