|
N20AT Command ManualCopyright © Neoway Technology Co., Ltd 102Parameter: Data packet ID: Name of the topic received: Length of message received: Content of message receivedReturn Value See the ExampleExample+PUBLISHDEFAULT:24760,/1000146090/Ndevice_T1/neo001,5,hello Receive published data+CLOUDPUBLISH:24761,/1000146090/Ndevice_T1/neo001,5,helloReceive published data (aftersubscribing to a topic using+CLOUDSUB)RemarksIf a topic is not subscribed to by using +CLOUDSUB, the publish data for this topicis displayed as +PUBLISHDEFAULT: ,,,.Otherwise, the publish data is displayed as + CLOUDPUBLISH:,,,13.5 Publishing Messages: +CLOUDSUBDescription To publish messages, specifying topic, QoS, and message content.Format AT+CLOUDPUB=,,Parameter: Publish topic: QoS of publish message: Message content, maximum length of 1024 bytesReturn ValueAfter the subscription is successful,+CLOUDPUBACK: After the subscription fails,+CMD ERROR: ExampleAT+CLOUDPUB=/1000146090/Ndevice_T1/neo001,1,hello+CLOUDPUBACK: Publish messagesuccessfullyAT+CLOUDPUB=/1000146090/Ndevice_T1/neo001,1,helloFail to publishmessage. ACK timedout.
PreviousNext |