N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
108
16.7 Unsubscribing a Message: +IMQTTUNSUB
Description
To unsubscribe a message
Format
AT+IMQTTUNSUB=<topcic><CR>
Parameter
<Topic>: Topic to be published
Return Value
<CR><LF><CR><LF>+IMQTTUNSUB:<packet_id>
<CR><LF>OK<CR><LF>
Or
<CR><LF><CR><LF>+CME ERROR:<err><CR><LF>
If valid data is input, the module returns OK and then reports result in an unsolicited
manner.
<CR><LF><CR><LF>+IMQTTUNSUB:<packet_id>,<status><CR><LF>
<Packet_id>: packet ID returned after subscribing the message
<Status>: status returned after subscribing the message
0: successful, QoS0
1: Timeout
2: Other errors
Example
AT+IMQTTUNSUB=”/test_topic_001”
+IMQTTUNSUB:24761
OK
+IMQTTUNSUB:24761, 0
The module unsubscribes a
message successfully.
Remarks
Only last topic unsubscribed and it QoS are returned to the query command.
16.8 Receiving Publish Message: +IMQTTRCVPUB
Description
To receive a publish message
Format
+IMQTTRCVPUB<CR>
Parameter
N/A
Return Value
<CR><LF>+IMQTTRCVPUB:<packet_id>,<topic>,<msg_len>,<message>,[form
at],[fragment_id]
Содержание N11 V2
Страница 1: ...N11 V2 AT Command Manual Issue 1 0 Date 2018 10 19 Neoway Product Document...
Страница 15: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 7 OK Remarks The default status setting is 7...
Страница 129: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 121 not support proactive time issuing...
Страница 134: ...N11 V2 AT Command Manual Copyright Neoway Technology Co Ltd 126...