Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W07 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
27
3. When AT+CIPDINFO=1, the output data length is 1540 bytes:
+IPD: 1,1440,"192.168.0.244",60001
……<payload>……
+IPD: 1,100,"192.168.0.244",60001
……<payload>……
5.7 MQTT communication
5.7.1 AT+MQTTUSERCFG MQTT user configuration information
Setting
AT+MQTTUSERCFG=[Scheme],["client_id"],["
username"],["password"]
+OK
Success
+ERR:[NUM]
Error
Inquiry
AT+MQTTUSERCFG?
+MQTTUSERCFG: ["client_id"],["username"],["password"]
Parameter
Scheme
Fixed at 1. MQTT TCP
client_id
Mqtt client ID. Maximum length: 255 characters
username
username. Maximum length: 63 bytes
password
password. Maximum length 63 bytes
Description
1. Effective immediately;
2. The client id of different modules must be unique. The same client ID will cause conflicts between modules.
Example
AT+MQTTUSERCFG=1,"W07","W07","123456789"
5.7.2 AT+MQTTCONNCFG MQTT connection configuration information
Setting
AT+MQTCONNCFG=
[keepalive],[disable_clean_session],["lwt_topic
"],["lwt_msg"],[lwt_qos],[lwt_retain]
+OK
Success
+ERR:[NUM]
Error
Inquiry
AT+ MQTCONNCFG?
+MQTCONNCFG=
[keepalive],[disable_clean_session],["lwt_topic"],["lwt_msg"],[l
wt_qos],[lwt_retain]
Parameter
keepalive
MQTT Heartbeat
disable_clean_session
Prohibit clearing the session.
lwt_topic
The subject of the will. Maximum length 64 bytes
lwt_msg
Will message. Maximum length 64 bytes
lwt_qos
The quality of the will message. 0, 1, 2
lwt_retain
If Will Retain is set to 0, then the server must publish Will
Message without saving;
If Will Retain is set to 1, then the server must publish Will
Message and save it
Description
Effective immediately;
Example
AT+MQTTCONNCFG=30,0,"ABCD","kljk",2,1