Operation Guide
© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
34
AT+HEART=<id><CR>
+ok=<id,time,value><CR><LF><CR><LF>
Set Operation:
AT+HEART=<id,time,value><CR>
+ok<CR><LF><CR><LF>
Parameters:
id: channel number, send heartbeat packets to a specific channel, including the following parameters.
A: SOCKA
B: SOCKB
1: UART
time: Heartbeat interval, default 【0】seconds, stands for disable heartbeat function, range 0~65535, this
time is valid after reboot.
value: Custom data, up to 38 bytes, support escape characters, please refer to AT+NREGDT command for
details. When SOCKA is used for MQTT, this content is of no use.
1.3.3.68. AT+HTPTP
Function: Set/query SOCKA HTTP request type. Setting will take effect after reset
Format:
Query Operation:
AT+HTPTP<CR>
+ok=<type,method><CR>< LF><CR>< LF>
Set Operation:
AT+HTPTP=<type[,method]><CR>
+ok<CR>< LF><CR>< LF>
Parameters:
type: HTTP request type
GET: GET
POST: POST
method: HTTP data method, optional value, if not fill, default is 0 only POST request valid.
0: Default value, received UART data is put in HTTP body.
1: received UART data is put in HTTP url parameters, auto add “?” between url and parameters(UART
received data)
1.3.3.69. AT+HTPURL
Function: Set/query SOCKA HTTP url resources and version. 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>
Parameters:
path: url resource, 50 characters length maximum, default: /abcd
version: HTTP protocol version, 1.0 or 1.1 default: 1.1
1.3.3.70. AT+HTPHEAD
Function: Set/query SOCKA HTTP header. Setting will take effect after reset