device information for AliCloud. OK AT+QMTOPEN=? +QMTOPEN: <tcpconnectID>,<host_name>,<port> OK AT+QMTOPEN=0,"iot-as-mqtt.cn-shanghai.aliyuncs.com",1883 //Open a network for MQTT client. OK +QMTOPEN: 0,0 //Opened the MQTT client network successfully. AT+QMTOPEN? +QMTOPEN: 0,"iot-as-mqtt.cn-shanghai.aliyuncs.com",1883 OK
server. //If AliCloud is connected, AT+QMTCFG=“aliauth” can be used to configure the device information in advance, and there is no need to provide username/password here anymore. AT+QMTCONN=0,“clientExample” OK +QMTCONN: 0,0,0 //Connected the client to MQTT server successfully. Example of MQTT Operation without SSL(2/4)
test data, hello MQTT. //After receiving >, input data “This is test data, hello MQTT.” and then send it. The maximum length of the data is 1548 bytes and the data that beyond 1548 bytes will be omitted. After inputting data, tap Ctrl+Z to send. OK +QMTPUB: Example of MQTT Operation without SSL(4/4)