获取板载温湿度数据

555

# 获取板载温湿度数据

Path:

/api/board_sensor.json

Method: GET

Content-type: application/json; charset=utf-8

接口描述: 获取板载温湿度数据,如果没有板载温湿度元器件则返回空。

注意:1.69.9 及其之后版本且含有板载温湿度元器件的版本支持该功能;

响应参数

名称 类型 示例 描述
humidity float 48.0 播放盒板载湿度值,-1000为无效值
temperature float 33.0 播放盒板载温度值,-1000为无效值

响应示例

{
	"humidity": 48.0,
	"temperature": 33.0
}