AT Commands For HTP
No | Command | Description |
L1401 | AT+CHTPSERV | Set HTP server info |
L1402 | AT+CHTPUPDATE | Updating date time using HTP protocol |
L1401 AT+CHTPSERV Set HTP Server Info
T) AT+CHTPSERV=? |
+CHTPSERV: “ADD”,”HOST”,(1-65535), (0-1)[,”PROXY”,(1-65535)] +CHTPSERV: “DEL”,(0-15) OK |
R) AT+CHTPSERV? |
+CHTPSERV: <index>”<host>”,<port>,<http_version> [,”<proxy>”,<proxy_port>] … +CHTPSERV: <index>”<host>”,<port>[,”<proxy>”,<proxy_port>] OK or OK (if HTP server not setted) |
W) AT+CHTPSERV=”<cmd>”,”<host_or_idx>”[,<port>,<http_version>[,”<proxy>”,proxy_port>]] |
OK or ERROR |
<cmd> |
This command to operate the HTP server list. “ADD” add a HTP server item to the list “DEL” delete a HTP server item from the list |
<host_or_idx> |
If the <cmd> is “ADD”, this field is the same as <host>, needs quotation marks; If the <cmd> is “DEL”, this field is the index of the HTP server item to be deleted from the list, does not need quotation marks. |
<host> | The HTP server address. |
<port> | The HTP server port. |
<http_version> |
The HTTP version of the HTP server: 0 HTTP 1.0 1 HTTP 1.1 |
<proxy> | The proxy address |
<proxy_port> | The port of the proxy |
<index> | The HTP server index. |
Example |
AT+CHTPSERV=”ADD”,”www.google.com”,80,1 OK |
L1402 AT+CHTPUPDATE Updating Date Time Using HTP Protocol
T) AT+CHTPUPDATE=? | OK |
R) AT+CHTPUPDATE? |
+CHTPUPDATE: <status> OK |
E) AT+CHTPUPDATE |
OK +CHTPUPDATE: <err> or ERROR |
<status> |
The status of HTP module: Updating HTP module is synchronizing date time NULL HTP module is idle now |
<err> | The result of the HTP updating |
Example |
AT+CHTPUPDATE OK +CHTPUPDATE: 0 |
Code of <err>
0 | Operation succeeded |
1 | Unknown error |
2 | Wrong parameter |
3 | Wrong date and time calculated |
4 | Network error |