calculate_user_codes_checksum()
- Calculates checksum of user codes array. Checksum is hash of all user codes and statuses. See user code CC capabilities is checksum supported.
Edit
- params: array of user code elements. See following table that describes element of array.
User Code Element In Array | fields | type | description | | ——– | —— | ———————————————————— | | id | int | user id | | mode | string | actual user code mode | | code | string | actual user code |
- return: int (16 bit).
Edit
require "zwave"
zwave.calculate_user_codes_checksum(node_id, channel_id,
{
{
id = 1,
mode = "enabled",
code = "10001"
},
{
id = 10,
mode = "disabled",
code = "10099"
},
{
id = 5,
mode = "passage",
code = "91119"
},
})<p class="random-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>require "zwave"
zwave.calculate_user_codes_checksum(node_id, channel_id,
{
{
id = 1,
mode = "enabled",
code = "10001"
},
{
id = 10,
mode = "disabled",
code = "10099"
},
{
id = 5,
mode = "passage",
code = "91119"
},
})