Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 518 Bytes

网关.md

File metadata and controls

18 lines (9 loc) · 518 Bytes

#网关

属性 说明
rgb 网关的夜灯颜色,uint32_t类型,rgb = 0xFF000000 ( R << 16)( G << 8)B,比如绿色RGB = 0xFF00FF00 = 4278255360。如果要使夜灯灭掉,rgb设置为0

##属性上报

{"cmd":"report","model":"gateway","sid":"6409802da2af","short_id":0,"data":"{\"rgb\":4278255360}" }

其中,sid需填写网关的did

##修改夜灯颜色

{"cmd":"write","model":"gateway","sid":"6409802da2af","short_id":0,"key":"8","data":"{\"rgb\":4278255360}" }