建立PPP连接 AT+XIIC=1\r
PPP链路建立成功,查询IP地址 AT+XIIC?\r
设置网络APN AT+CREG?\r
链接:https://pan.baidu.com/s/1rI3U73Co6MNveM-Kc9JhuQ
提取码:uawr
HTTP 参数设置 | AT+HTTPPARA=url,www.armxu.cn/rest/sql\r |
AT+HTTPPARA=port,6041\r | |
链路连接 | AT+HTTPSETUP\r |
HTTP 发送请求 | AT+HTTPACTION=99,147,1\r |
POS主体 | POST /rest/sql HTTP/1.1\r\nHost:www.armxu.cn\r\nContent-Type:text/plain\r\nContent-Length:15\r\nAuthorization:Basic cm9vdDp0YW9zZGF0YQ==\r\n\r\nshow databases; |
HTTP
链路主动关闭
| AT+HTTPCLOSE\r |
POST /rest/sql HTTP/1.1
Host:www.armxu.cn
Content-Type:text/plain
Content-Length:15
Authorization:Basic cm9vdDp0YW9zZGF0YQ==show databases;