Hi ,
I am using the HL6528 Sierra module.
Version info: Sierra Version: SIERRA HL6N,003.00.200B.7175B
I am using thingsboard.io as the platform.
I have created a device on the thingsboard server and want to upload the data.
Below is the AT+ commands i used.I am not able to send the data using AT+HTTTPPOST command.
Below is the sequence of commands executed—
IP address:
AT+KHTTPCFG=1,“IP-address”,8080,0,“login”,“pwd”
OK ---->response comes correctly.
AT+KHTTPHEADER=0
CONNECT — Connect response comes.
Then sent below parameters :
Content-Type: application/json;charset=utf-8
Content-Length: 30
token: yB00dpprAKhtlkKuVLf9
–EOF–Pattern–
OK
AT+KHTTPPOST=0,"/api/v1/yB00dpprAKhtlkKuVLf9/attributes/"
Connect -----Command responses with connect and gives the below error.
HTTP/1.1 415
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 26 Jul 2018 13:25:42 GMT
1e0
{“timestamp”:1532611542256,“status”:415,“error”:“Unsupported Media Type”,
“exception”:“org.springframework.web.HttpMediaTypeNotSupportedException”,
“message”:“Invalid mime type “application/json;charset=utf-8Content-Length: 30
token: yB00dpprAKhtlkKuVLf9Authorization: Basic dGVuYW50QHRoaW5nc2JvYXJkLm9yZzp0ZW5hbnQ=”: utf-8Content-Length: 30
token: yB00dpprAKhtlkKuVLf9Authorization: Basic dGVuYW50QHRoaW5nc2JvYXJkLm9yZzp0ZW5hbnQ=”,“path”:"/api/v1/yB00dpprAKhtlkKuVLf9/attributes/"}
It tells the error as Unsupported media type.Please let me know where I am missing the steps.
Please provide any sample AT+HTTPPOST data sending steps.