AT指令嚴格要求網上的步驟輸入了但是不行,實在找不出啥原因。。。
都是到輸入 AT+CIPSEND 返回 “ok” 跟 “>” 之后輸入
POST /devices/714368913/datapoints HTTP/1.1 (回車)
api-key: nrHkt8g2BsKsKnyZTTeeqZbSiKE= (回車)
Host:api.heclouds點com (回車)
之后就跳出這么個信息:
>HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 25 May 2021 05:43:17 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
整體流程如下:
WIFI CONNECTED
WIFI GOT IP
AT+CIPSTART="TCP","183.230.40.33",80
CONNECT
OK
AT+CIPMODE=1
OK
AT+CIPSEND
OK
>HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 25 May 2021 05:43:17 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
|