From e797d0327fa3a9a9c4379d243462f9dc1ff27c26 Mon Sep 17 00:00:00 2001 From: YunHorn Technology Date: Thu, 15 Aug 2024 14:10:28 +0800 Subject: [PATCH] --revised decoder --- AS923_HK_DECODER.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AS923_HK_DECODER.js b/AS923_HK_DECODER.js index 3c0f205..a1ab8f1 100644 --- a/AS923_HK_DECODER.js +++ b/AS923_HK_DECODER.js @@ -344,7 +344,7 @@ function Decode(fPort, data, variables) { data.rss_reserve04 = bytes[32]; data.reserve2 = bytes[33]; data.reserve3 = bytes[34]; - data.reserve4 = bytes[35]; + data.sensor_install_height = bytes[35] * 10 + " cm"; data.alarm_parameter05 = bytes[36]; data.alarm_mute_expire_timer = bytes[37]; @@ -469,4 +469,4 @@ function Decode(fPort, data, variables) { } return { "Yunhorn_SmarToilets_data": data }; } -} +} \ No newline at end of file