Data Sheet

Air602_AT Instruction User Manual
2.2.3.11 Send data through the specified socket AT+SKSND.......................................... 52
2.2.3.12 Read the data in the receive buffer of the specified socket AT+SKRCV............ 53
2.2.3.13 Get the specified socket state AT+SKSTT ........................................................... 54
2.2.3.14 Close the specified socket AT+SKCLS ................................................................. 55
2.2.3.15 Set the socket sent by the system by default. AT+SKSDF.................................. 55
2.2.3.16 Get the source IP address of the current socket received data AT+SKSRCIP…. 56
2.2.3.17 Socket actively reports receiving data AT+SKRPTM .......................................... 56
2.2.3.18 One-click configuration AT+ONESHOT ............................................................... 57
2.2.3.19 HTTP client post get function AT+HTTPC........................................................... 58
2.2.4 MQTT Instruction................................................................................................................... 59
Luat 5 /73
2.2.4.1
2.2.4.2
2.2.4.3
2.2.4.4
2.2.4.5
2.2.4.6
2.2.4.7
2.2.4.8
2.2.4.9
2.2.4.10
Set up the MQTT server AT+MSERVER.............................................................. 59
Set login account and password AT+MLOGIN................................................... 59
Set Client IDAT+MID........................................................................................... 59
Connect to the MQTT server AT+MCONNECT.................................................. 60
Subscribe to a topic AT+MSUB .......................................................................... 60
Post a message AT+MPUB................................................................................. 61
Received a message AT+MTOPIC,AT+MQD ...................................................... 61
Close the MQTT server AT+MCLOSE.................................................................. 61
MQTT Result Code................................................................................................... 62
MQTT Usage Example............................................................................................. 63
3 Common operation........................................................................................................................................ 65
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
Create a SoftAP Process............................................................................................................. 65
Scan AP Process.......................................................................................................................... 66
STA joins the AP Process............................................................................................................ 66
Create an APSTA Process........................................................................................................... 67
How the STA disconnects the AP................................................................................................ 68
SoftAP Disconnected................................................................................................................... 68
How STAs view current status..................................................................................................... 68
View current SoftAP status.......................................................................................................... 68
How to use the socket function................................................................................................... 68
Transparent transmission application in automatic operating mode........................................... 73