4G_2G DTU Products Function
http://www.iotworkshop.com - 44 -
⚫ 2: Serial port 2 channel. (G10, G11, G12 support)
◆ time: Heartbeat interval, default 【0】seconds, disable heartbeat function, range
1~65535.
◆ data: Custom data, up to 38 bytes, support escape characters, please refer to AT+NREGDT
command for details.
2.4.2.29. AT+HTPTP
◼ Function: Set/query HTTP request type. Only valid for Socket A for HTTP mode, setting will take
effect after reset.
◼ Format:
◆ Query Operation:
AT+HTPTP<CR>
+ok=<type><CR><LF><CR><LF>
◆ Set Operation:
AT+HTPTP=<type><CR>
+ok<CR><LF><CR><LF>
◼ Parameter:
◆ type: HTTP request type
GET: GET request
POST: POST request
2.4.2.30. AT+HTPURL
◼ Function: Set/query HTTP url resources and version. Only valid for Socket A for HTTP mode,
setting will take effect after reset.
◼ Format:
◆ Query Operation:
AT+HTPURL<CR>
+ok=<path,version><CR><LF><CR><LF>
◆ Set Operation:
AT+HTPURL=<path,version><CR>
+ok<CR><LF><CR><LF>
◼ Parameter:
◆ path: url resource, 50 characters length maximum, default: /abcd
◆ version: HTTP protocol version, 1.0 or 1.1 default: 1.1
2.4.2.31. AT+HTPHEAD
◼ Function: Set/query HTTP header. Only valid for Socket A for HTTP mode, setting will take
effect after reset.
◼ Format:
◆ Query Operation:
AT+HTPHEAD<CR>
+ok=<header><CR><LF><CR><LF>
◆ Set Operation:
AT+HTPURL=<header><CR>
+ok<CR><LF><CR><LF>
◼ Parameter:
◆ header: HTTP header, for new line in header use “<CRLF><CRLF>”. 180 characters
maximum. Default: "Content-type:text/html;charset=utf-8<CRLF><CRLF>"
2.4.2.32. AT+WEBSOCKET
◼ Function: Set/query WebSocket content. Only valid for Socket A for WebSocket mode, setting
will take effect after reset.