EasyManua.ls Logo

Sunsea AIoT SimCom SIM7090G-EVB Kit - 7.4 MQTT Functions

Default Icon
25 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIM7090G EVB Kit User Guide V1.00
www.simcom.com
- 22 -
"117.131.85.139",6004
+CAOPEN: 0,0
on 0th connection. Return to URC the
first parameter is the identifier, the
second parameter is the result of the
connection, and the 0 indicates
success.
AT+CASEND=0,5
> Hello
OK
+CASEND: 0,0,5
Request to send 5 bytes of data Input
data Data sent successfully
+CADATAIND: 0 Data come in on 0th connection.
AT+CARECV=0,
+CARECV: 10,GET / HTTP
OK
100 Request to get 100 byte data sent
by the server. Output received data
AT+CACLOSE=0 OK
Close the connection with an identifier
of 0.
AT+CNACT=0,0
OK
+APP PDP: 0,DEACTIVE
Disconnect 0th data connection
7.4 MQTT Functions
AT Command Response Description
AT+CNACT=0,1
OK
+APP PDP: 0,ACTIVE
Open wireless connection parameter
0 is PDP Index, parameter 1 means
active.
AT+CNACT?
+CNACT:0,1,"10.181.182.177"
+CNACT: 1,0,"0.0.0.0"
+CNACT: 2,0,"0.0.0.0"
+CNACT: 3,0,"0.0.0.0"
OK
Get local IP.
AT+SMCONF="URL",117.131.
85 .139,6000
OK Set up server URL
AT+SMCONF="KEEPTIME",60 OK Set MQTT time to connect server
AT+SMCONN OK