AT //测试AT指令
OK
AT+CWMODE=1 //设置单STA模式并把配置保存到FLASH中
OK
AT+CWAUTOCONN=1 //使能上电自动连接AP
OK
AT+CWSTARTSMART=3
//支持ESP-TOUCH与AIRKISS智能配网
OK
WIFI DISCONNECT
smartconfig type:AIRKISS
Smart get wifi info
ssid:e@
password:eatmifen
WIFI CONNECTED
WIFI GOT IP
smartconfig connected wifi
AT+CWSTOPSMART //无论是否连接成功都需要智能配网所占的内存
OK
AT+CIPSTATUS //查询网络连接状态
STATUS:2
OK
AT+CIPSTART=“TCP”,“api.seniverse.com”,80 //连接服务器
CONNECT
OK
AT+CIPMODE=1 //设置成功则返回OK
OK
AT+CIPSEND //发送数据
OK
GET https://api.seniverse.com/v3/weather/now.json?key=你自己的私钥&location=xian&language=en&unit=c //向网站数据请求
返回:
{“results”:[{“location”:
{“id”:“WT029G15ETRJ”,“name”:“Changsha”,“country”:“CN”,“path”:“Changsha,Changsha,Hunan,China”,“timezone”:“Asia/Shanghai”,“timezone_offset”:
“+08:00”},“now”:{“text”:“Cloudy”,“code”:“4”,“temperature”:“20”},“last_update”:“2021-05-17T10:25:00+08:00”}]}
+++ //退出透传