Updated on 2023-02-16 GMT+08:00

AT+HMSUB

This command is used to subscribe to a custom topic.

Command

Parameter

Default Parameter Processing

AT Response

Example

AT+HMSUB=qos, topic

qos: topic QoS.

Default value: 0

+HMSUB OK when success

AT+HMSUB=0,"$oc/devices/my_deviceid/user/my_subtopic"

topic: custom topic.

Custom

+HMSUB ERR:code code:reference to en_oc_mqtt_err_code_t defines