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>
|