|
case 1120:UART1_sendstr("POST /v1.0/device/19119/sensor/33705/datapoints HTTP/1.1rn");break; //温度传感器
case 1121:UART1_sendstr("Host: api.yeelink.netrn");break;
case 1122:UART1_sendstr("Accept: */*rn");break;
case 1123:UART1_sendstr("U-ApiKey: 20314f31cb6934a5187f43b676be2886rn");break;
case 1124:UART1_sendstr("Content-Length: ");esp8266_uint_to_string(10+getLength(shidu));UART1_sendstr("rn");break;
case 1125:UART1_sendstr("Content-Type: application/x-www-form-urlencodedrnrn");break;//这里是空一行的意思
case 1126:UART1_sendstr("{"value":");esp8266_uint_to_string(shidu);UART1_sendstr("}rn");break; |
|