|
- void postValue(int sensor, float value) {
- Process p;
-
-
- p.runShellCommand("curl --request POST -d '{"timestamp":"'"
- + String("`date '+%Y-%m-%dT%T'`")
- + "'","value":"
- + value
- + "}' --header "U-ApiKey: XXXXXX""
- + " http://api.yeelink.net/v1.0/device/"
- + DEVICEID
- + "/sensor/"
- + sensor
- + "/datapoints");
- while (p.available())
- Serial.print((char)p.read());
- }
复制代码 arduino yun+DHT11 上传yeelink
print
No access permission to this sensor.No access permission to this sensor.No access permission to this sensor.No access permission to this sensor.No access permission to this sensor. |
|