Hi All,
I am trying to send JSON_Packet to HTTP Server Thingsboard but i got this problem QHTTPPOST: 0,400, please let me know how to fix it. Thank you!!!
[2021-11-10_20:52:00:480]AT
[2021-11-10_20:52:00:480]OK
[2021-11-10_20:52:01:480]ATE1
[2021-11-10_20:52:01:480]OK
[2021-11-10_20:52:02:492]AT+CMEE=2
[2021-11-10_20:52:02:492]OK
[2021-11-10_20:52:03:519]AT+CPIN?
[2021-11-10_20:52:03:519]+CPIN: READY
[2021-11-10_20:52:03:519]OK
[2021-11-10_20:52:04:519]AT+COPS?
[2021-11-10_20:52:04:519]+COPS: 0,0,“Viettel”,0
[2021-11-10_20:52:04:519]OK
[2021-11-10_20:52:05:536]AT+CGACT=1,1
[2021-11-10_20:52:05:536]OK
[2021-11-10_20:52:06:535]AT+CGPADDR=1
[2021-11-10_20:52:06:535]+CGPADDR: 1,11.224.202.209
[2021-11-10_20:52:06:535]OK
[2021-11-10_20:52:07:547]AT+CGREG?
[2021-11-10_20:52:07:547]+CGREG: 0,1
[2021-11-10_20:52:07:547]OK
[2021-11-10_20:52:08:574]AT+QICSGP=1
[2021-11-10_20:52:08:574]+QICSGP: 1,“v-internet”,"","",1
[2021-11-10_20:52:08:574]OK
[2021-11-10_20:52:09:571]AT+QHTTPCFG=“contextid”,1
[2021-11-10_20:52:09:571]OK
[2021-11-10_20:52:10:588]AT+QHTTPCFG=“requestheader”,1
[2021-11-10_20:52:10:588]OK
[2021-11-10_20:52:11:587]AT+QHTTPCFG=“responseheader”,1
[2021-11-10_20:52:11:587]OK
[2021-11-10_20:52:12:633]AT+QHTTPCFG?
[2021-11-10_20:52:12:633]+QHTTPCFG: “contextid”,1
[2021-11-10_20:52:12:633]+QHTTPCFG: “requestheader”,1
[2021-11-10_20:52:12:633]+QHTTPCFG: “responseheader”,1
[2021-11-10_20:52:12:633]+QHTTPCFG: “sslctxid”,1
[2021-11-10_20:52:12:633]+QHTTPCFG: “contenttype”,0
[2021-11-10_20:52:12:633]+QHTTPCFG: “auth”,":"
[2021-11-10_20:52:12:633]+QHTTPCFG: “custom_header”,""
[2021-11-10_20:52:12:633]OK
[2021-11-10_20:52:13:619]AT+QIACT=1
[2021-11-10_20:52:13:619]OK
[2021-11-10_20:52:14:645]AT+QICSGP=1,1,“V-INTERNET”,"","",1
[2021-11-10_20:52:14:645]OK
[2021-11-10_20:52:15:645]AT+QIACT?
[2021-11-10_20:52:15:645]+QIACT: 1,1,1,“11.224.202.209”
[2021-11-10_20:52:15:645]OK
[2021-11-10_20:52:16:673]AT+QHTTPURL=64,80
[2021-11-10_20:52:16:673]CONNECT
http://137.59.xx.xxx:8080/api/v1/gO0PeIKGkiHcKjTA8DL0/telemetry
[2021-11-10_20:52:17:687]OK
[2021-11-10_20:52:18:698]AT+QHTTPURL?
[2021-11-10_20:52:18:698]+QHTTPURL: http://137.59.xx.xxx:8080/api/v1/gO0PeIKGkiHcKjTA8DL0/telemetry
[2021-11-10_20:52:18:698]OK
[2021-11-10_20:52:19:712]AT+QHTTPPOST=172,80,80
[2021-11-10_20:52:20:484]CONNECT
POST /api/v1/gO0PeIKGkiHcKjTA8DL0/telemetry HTTP/1.1
Host: 137.59.xx.xxx:8080
Content-Type: application/json
Accept: /
Content-Length: 19
//Don’t miss this line
{“Iout”:20}
[2021-11-10_20:52:26:494]OK
[2021-11-10_20:52:27:179]
[2021-11-10_20:52:27:179]+QHTTPPOST: 0,400,435