php 数据POST
publicfunctionair_switch($is_on){$headers=array('POST/v1.0/device/21288/sensor/37498/datapointsHTTP/1.1','Host:api.yeelink.net','Accept:*/*','U-ApiKey:ea012909bbf86a2f927b9d2e8a0f58fd',);$switch='{"value":'.$is_on.'}';$curl
用户评论