1
0
forked from dyf/APP

修复670灯光问题

This commit is contained in:
liub
2025-12-03 10:20:11 +08:00
parent cd6d529523
commit e2d07e984f
6 changed files with 38 additions and 17 deletions

View File

@ -256,7 +256,7 @@ class BleReceive {
}
Receive_670(receive, f, path, recArr) {
console.log("pagh=", path);
// console.log("pagh=", path);
var todo = (bytes) => {
// console.log("todo",receive);
let receiveData = {};
@ -283,8 +283,8 @@ class BleReceive {
// console.log("todo");
// 解析照明档位
let lightingLevelByte = bytes[2];
let lightingLevelText = lightingLevelByte === 0x6d ? 'hight' : lightingLevelByte === 0x6e ?
'low' : 'close';
let lightingLevelText = lightingLevelByte === 0x6d ? 'qiang' : lightingLevelByte === 0x6e ?
'ruo' : 'close';
// 解析剩余照明时间(第三和第四字节,小端序)
let lightingTime = (bytes[3] << 8) | bytes[4];