Milesight-IoT / SensorDecoders

https://www.milesight.com
GNU General Public License v3.0
133 stars 61 forks source link

TS30X Payload Definition doesnt fit with decoder #41

Closed NicciZar closed 2 months ago

NicciZar commented 4 months ago

Hi,

Payload definition of TS30x doesn't say that "magnet_chn1_alarm" exists but in the decoder.js it does exist. (line 109)

line 108                    data.magnet_chn1 = readInt16LE(bytes.slice(i, i + 2)) === 0 ? "closed" : "opened";
line 109                    data.magnet_chn1_alarm = "threshold";
line 110                    break;

Is this correct or should this be a different property?

milesight-sway commented 4 months ago

https://github.com/Milesight-IoT/SensorDecoders/tree/main/TS_Series/TS30x#historical-data-channel-mask

Historical Data Channel Mask

milesight-sway commented 3 months ago

Since we haven't heard back from you for a while, we will proceed to close this issue. If you encounter any other problems, don't hesitate to open an issue.