中山市博安通通信技术有限公司
ZHONGSHAN B&T TECHNOLOGYCo., Ltd
Page 9 of 34
3.2
ATPN-connect to AP
ATPN=<ssid>,<pwd>
Description
Connect to a specified AP
Parameter
ssid: AP name (add '\' before special characters)
pwd: password
Response
Success
[ATPN] OK
Fail
[ATPN] ERROR:<error_code>
Error code
1: The Command format is invalid.
2: Parameter error
3: wifi initialization error
4: an AP connection error occurred.
5: wifi mode error (ATPW setting mode)
6: An error occurred while obtaining the security type.
7: dhcp times out, using static IP address 192.168.1.80
Example
# ATPN=test,12345678
[ATPN] OK
3.3
ATWD-disconnect from AP connection
ATWD
Description
Disconnect the current wifi
Response
Success
[ATWD] OK
Fail
[ATWD] ERROR:<error_code>
Error
Code
3: The operation failed.
4: The Operation timed out.
Example
# ATWD
[ATWD] OK
3.4
ATWS scan for AP hotspots
ATWS
Description
Scanning AT Hotspots
Parameter
SSID in AP mode
Response
AP : <num>,<ssid>,<chl>,<sec>,<rssi>,<bssid>
[ATWS] OK