PUBLISH


P4M-440G, as an MQTT client, can request to publish messages to a MQTT broker.

PUBLISH Request: +MBP

AT+MBP="<Topic>","<Message>"
AT+MBP="<Topic>",<An ID of a Message Buffer>
AT+MBP=<An ID of a Topic Buffer>,"<Message>"
AT+MBP=<An ID of a Topic Buffer>,<An ID of a Message Buffer>

at+mbp="test/test_topic","test message"
OK
at+mqns
+MQNS:4
OK

at+mbt=0,"test/topic_0"
OK
at+mbm=0,"test message"
OK
at+mbp=0,0
OK
at+mqns
+MQNS:4
OK