From f11f984213fa56213e504a6e70084b52544716bc Mon Sep 17 00:00:00 2001 From: pvvx Date: Sat, 24 Feb 2024 02:50:59 +0300 Subject: [PATCH] fix sensor cfg --- bthome_phy6222/web/PHY62x2BTHome.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bthome_phy6222/web/PHY62x2BTHome.html b/bthome_phy6222/web/PHY62x2BTHome.html index 94fd2ed..ca989cd 100644 --- a/bthome_phy6222/web/PHY62x2BTHome.html +++ b/bthome_phy6222/web/PHY62x2BTHome.html @@ -1,6 +1,6 @@ -PHY62x2 BTHome v1.2 +PHY62x2 BTHome v1.3 @@ -1679,13 +1679,13 @@ function setSensCfg() { devSens.temp_z = parseInt($('inpTempZ').value); devSens.humi_z = parseInt($('inpHumZ').value); - blk = new Uint8Array([0x55, + blk = new Uint8Array([0x25, devSens.temp_k & 0xff, (devSens.temp_k >> 8) & 0xff, (devSens.temp_k >> 16) & 0xff, (devSens.temp_k >> 24) & 0xff, devSens.humi_k & 0xff, (devSens.humi_k >> 8) & 0xff, (devSens.humi_k >> 16) & 0xff, (devSens.humi_k >> 24) & 0xff, devSens.temp_z & 0xff, (devSens.temp_z >> 8) & 0xff, devSens.humi_z & 0xff, (devSens.humi_z >> 8) & 0xff ]); - cmdCharacteristic.writeValue(new Uint8Array([0x25])).catch(error => { console.log(error); addLog("setSensCfg() error!"); }); + cmdCharacteristic.writeValue(blk).catch(error => { console.log(error); addLog("setSensCfg() error!"); }); } }