EMQSUBCLOSE – cancel a subscription to a message topic
Cancel a subscription to a topic.
Type | Syntax | Returned Result |
---|---|---|
Test |
AT+EMQSUBCLOSE=? |
OK
+EMQPUBOPEN:(0-7) |
Read |
AT+EMQSUBCLOSE? |
OK or ERROR |
Write |
AT+EMQSUBCLOSE=(0-7) where:
|
OK
+EMQSUBCLOSE:(0-7),<status> where:
or ERROR – the command failed
+EMQSUBCLOSE:(0-7),<status> |
Example
AT+EMQSUBCLOSE=0
OK
+EMQSUBCLOSE: 0,0
AT+EMQSUBOPEN?
OK
+EMQSUBOPEN topics:
0 null
1 SubscribeFromCloud1/AWSthingName
2 null
3 null
4 null
5 null
6 null
7 null