Connecting to Broker


P4M-440G can request a connection to a MQTT broker as an MQTT client.

Connect to a Broker: +MNC

at+mnc="203.0.113.0"
OK

at+mnc="203.0.113.0",8883
OK

at+mnc="example.com",8884,"tls"
OK

Check Connection Status: +MQNS

AT+MQNS

at+mnc="203.0.113.0"
OK
at+mqns
+MQNS:4
OK

Disconnect from a Broker: +MND

AT+MND

at+mqns
+MQNS:4
OK
at+mnd
OK
at+mqns
+MQNS:0
OK