Contributed by Liming Jiangzhi!, organized by Ai-Thinker
Ai-WB2-32S AT+HTTPCLIENTLINE Command Usage
Last edited by Liming Jiangzhi! at 2024-2-21 16:38
1. Notes
If the device is not connected to the network, error 96 or error 98 will be reported;
2. Example
1. Usage Process
To connect to the Seniverse weather website and get real-time weather, you can use the following commands:
Click to expand full code
html
AT+WMODE=1,1(设置为STA模式:站点;保存到flash)
AT+WJAP=your_wifi_name,your_wifi_password(连接WiFi)
AT+WAUTOCONN=1(上电自动重连WiFi)
AT+HTTPCLIENTLINE=1,2,application/json,api.seniverse.com,80,[https://api.seniverse.com/v3/weather/now.json?key=your_api_key&location=zhaoqing&language=en&unit=c](https://api.seniverse.com/v3/weather/now.json?key=your_api_key&location=zhaoqing&language=en&unit=c)*Note: No spaces are needed between the letters of any of the commands above;
2. Screenshot of a Successful Example


