提示:发送协议中的符号、字符都是英文输入法状态时输入的,不要用中文输入法键入里面的“;”、“:”
一:下位机器发送数据协议###
水滴:rain:0-100;
如: rain:50;
温度:temperature:温度;
如:temperature:15;
湿度:humidity:湿度;
如:humidity:60;
浓度:smoke:浓度;
如:smoke:50;
风扇:fan:0/255;
如:风扇开:fan:255;
风扇关:fan:0;
接近开关:invade:0/1;
如:接近开关开:invade:1;
亮度:brightness:0-100;
如:brightness:50;
分贝:db:分贝;
如db:50;
二:手机端发送数据协议###
亮度调节:lightness:0-100;
如:lightness:50;
开关:toggle:on/off;
如:开关开:toggle:on;