EasyManuals Logo

SimCom SIM7800 Series User Manual

SimCom SIM7800 Series
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #36 background imageLoading...
Page #36 background image
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 35 / 41
// Set the will topic for the CONNECT message
AT+CMQTTWILLTOPIC=0,10
>0123456789
OK
// Set the will message for the CONNECT message
AT+CMQTTWILLMSG=0,6,1
> qwerty
OK
// Connect to a MQTT server, input the right server and port
AT+CMQTTCONNECT=0,"tcp://mqtts_server:port",60,1
OK
+CMQTTCONNECT: 0,0
// Set the topic for the PUBLISH message
AT+CMQTTTOPIC=0,13
> dddrrrggghhhk
OK
// Set the payload for the PUBLISH message
AT+CMQTTPAYLOAD=0,60
> 012345678901234567890123456789012345678901234567890123456789
OK
// Publish a message
AT+CMQTTPUB=0,1,60
OK
+CMQTTPUB: 0,0
// Set one topic for the SUBSCRIBE message
AT+CMQTTSUBTOPIC=0,9,1
>123456789
OK
// Subscribe a message
AT+CMQTTSUB=0
OK
+CMQTTSUB: 0,0
// Subscribe one topic from the server
AT+CMQTTSUB=0,9,1
>simcommsg

Table of Contents

Other manuals for SimCom SIM7800 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SimCom SIM7800 Series and is the answer not in the manual?

SimCom SIM7800 Series Specifications

General IconGeneral
BrandSimCom
ModelSIM7800 Series
CategoryControl Unit
LanguageEnglish

Related product manuals