局域网接口文档
接口说明 1.获取灯的状态
请求URL
请求方式
GET
返回
{
“period“:1000,
“status“:3,
“color“:{
“red“:0,
“green“:0,
“blue“:0,
“white“:255
}
}
接口说明 2.设置灯的状态
请求URL
请求方式
POST
请求Body
请求参数 参数类型 参数说明 period Integer 周期 status Integer 灯的状态 color Object 颜色集 Body示例
{
“period“:1000,
“status“:3,
“color“:{
“red“:0,
“green“:0,
“blue“:0,
“white“:255
}
}