|
Z-Wave Protocol Controller Reference
|
#include "sl_status.h"#include "zwave_command_class_user_credential_types.h"#include "attribute_store.h"Go to the source code of this file.
Functions | |
| sl_status_t | zwave_command_class_user_credential_add_new_user (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t user_type, user_credential_rule_t credential_rule, user_credential_user_active_state_t user_active_state, user_credential_expiring_timeout_minutes_t expiring_timeout, user_credential_user_name_encoding_t user_name_encoding, const char *user_name) |
| Send a new user command (User SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_modify_user (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t user_type, user_credential_rule_t credential_rule, user_credential_user_active_state_t user_active_state, user_credential_expiring_timeout_minutes_t expiring_timeout, user_credential_user_name_encoding_t user_name_encoding, const char *user_name) |
| Send a modify user command (User SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_user (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id) |
| Send a delete user command (User SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_add_new_credential (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, const char *credential_data) |
| Send a new credential command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_modify_credential (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, const char *credential_data) |
| Send a modify credential command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_credential (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot) |
| Send a delete credential command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_all_users (attribute_store_node_t endpoint_node) |
| Send a delete all users command (User SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_all_credentials (attribute_store_node_t endpoint_node) |
| Send a delete all credentials command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_all_credentials_by_type (attribute_store_node_t endpoint_node, user_credential_type_t credential_type) |
| Send a delete all credentials by type command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_all_credentials_for_user (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id) |
| Send a delete all credentials for user command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_delete_all_credentials_for_user_by_type (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type) |
| Send a delete all credentials for user by type command (Credential SET) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_credential_learn_start_add (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, user_credential_learn_timeout_t credential_learn_timeout) |
| Send new credential command (Credential Learn Start) with operation type Add to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_credential_learn_start_modify (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, user_credential_learn_timeout_t credential_learn_timeout) |
| Send new credential command (Credential Learn Start) with operation type Modify to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_credential_learn_stop (attribute_store_node_t endpoint_node) |
| Send new credential command (Credential Learn Stop) to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_uuic_association_set (attribute_store_node_t endpoint_node, user_credential_type_t credential_type, user_credential_user_unique_id_t source_user_id, user_credential_slot_t source_credential_slot, user_credential_user_unique_id_t destination_user_id, user_credential_slot_t destination_credential_slot) |
| Send a User Unique Identifier Credential Association Set to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_get_user_checksum (attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id) |
| Send a User Checksum Get command to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_get_credential_checksum (attribute_store_node_t endpoint_node, user_credential_type_t credential_type) |
| Send a Credential Checksum Get command to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_get_all_users_checksum (attribute_store_node_t endpoint_node) |
| Send a All Users Checksum Get command to the end device. More... | |
| sl_status_t | zwave_command_class_user_credential_set_admin_pin_code (attribute_store_node_t endpoint_node, const char *credential_data) |
| Send a Set Admin Pin Code command to the end device. More... | |
| bool | zwave_command_class_user_credential_supports_admin_pin_code_deactivation (attribute_store_node_t endpoint_node) |
| Return true if the User Credential Command Class supports the Admin Pin Code Deactivation command. More... | |
| bool | zwave_command_class_user_credential_supports (attribute_store_node_t endpoint_node, uint8_t command_id) |
| Test if given command id is supported by the User Credential Command Class. More... | |
| sl_status_t zwave_command_class_user_credential_add_new_credential | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type, | ||
| user_credential_slot_t | credential_slot, | ||
| const char * | credential_data | ||
| ) |
Send a new credential command (Credential SET) to the end device.
The credential data expected is an UTF-8 string. Some check/conversion will be performed based on the credential type.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Can exist or not. Cannot be 0. |
| credential_slot | The slot of the credential. Should not exists. Cannot be 0. |
| credential_data | Raw data of the credential. Checks are performed based on the credential type. |
| sl_status_t zwave_command_class_user_credential_add_new_user | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | user_type, | ||
| user_credential_rule_t | credential_rule, | ||
| user_credential_user_active_state_t | user_active_state, | ||
| user_credential_expiring_timeout_minutes_t | expiring_timeout, | ||
| user_credential_user_name_encoding_t | user_name_encoding, | ||
| const char * | user_name | ||
| ) |
Send a new user command (User SET) to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should NOT exists and NOT be 0 |
| user_type | The type of the user credential. |
| credential_rule | The rule associated with the user credential. |
| user_active_state | The active state of the user. |
| expiring_timeout | The timeout for the user credential to expire, in minutes. Will be ignored unless user_type == 0x07. |
| user_name_encoding | The encoding format of the user name. |
| user_name | The name of the user. |
| sl_status_t zwave_command_class_user_credential_credential_learn_start_add | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type, | ||
| user_credential_slot_t | credential_slot, | ||
| user_credential_learn_timeout_t | credential_learn_timeout | ||
| ) |
Send new credential command (Credential Learn Start) with operation type Add to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Can exist or not. Cannot be 0. |
| credential_slot | The slot of the credential. Should not exists. Cannot be 0. |
| credential_learn_timeout | Timeout for each credential learn step on the node, in seconds. Can be set to 0 to use recommended timeout by the end device. |
| sl_status_t zwave_command_class_user_credential_credential_learn_start_modify | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type, | ||
| user_credential_slot_t | credential_slot, | ||
| user_credential_learn_timeout_t | credential_learn_timeout | ||
| ) |
Send new credential command (Credential Learn Start) with operation type Modify to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Should exists. Cannot be 0. |
| credential_slot | The slot of the credential. Should exists. Cannot be 0. |
| credential_learn_timeout | Timeout for each credential learn step on the node, in seconds. Can be set to 0 to use recommended timeout by the end device. |
| sl_status_t zwave_command_class_user_credential_credential_learn_stop | ( | attribute_store_node_t | endpoint_node | ) |
Send new credential command (Credential Learn Stop) to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| sl_status_t zwave_command_class_user_credential_delete_all_credentials | ( | attribute_store_node_t | endpoint_node | ) |
Send a delete all credentials command (Credential SET) to the end device.
It will send an Credential SET command with user_id, credential_type and credential_slot = 0 and operation type delete to remove all credentials.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| sl_status_t zwave_command_class_user_credential_delete_all_credentials_by_type | ( | attribute_store_node_t | endpoint_node, |
| user_credential_type_t | credential_type | ||
| ) |
Send a delete all credentials by type command (Credential SET) to the end device.
It will send an Credential SET command with user_id = 0 and operation type delete to remove all credentials of the specified type.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| credential_type | The type of the credential. Should exists. Cannot be 0. |
| sl_status_t zwave_command_class_user_credential_delete_all_credentials_for_user | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id | ||
| ) |
Send a delete all credentials for user command (Credential SET) to the end device.
It will send an Credential SET command with credential_type and credential_slot = 0 and operation type delete to remove all credentials of the specified user.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| sl_status_t zwave_command_class_user_credential_delete_all_credentials_for_user_by_type | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type | ||
| ) |
Send a delete all credentials for user by type command (Credential SET) to the end device.
It will send an Credential SET command with credential_slot = 0 and operation type delete to remove all credentials of the specified user and type.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Should exists. Cannot be 0. |
| sl_status_t zwave_command_class_user_credential_delete_all_users | ( | attribute_store_node_t | endpoint_node | ) |
Send a delete all users command (User SET) to the end device.
It will send an User SET command with user id = 0 and operation type delete to remove all users. (CC:0083.01.05.11.009)
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| sl_status_t zwave_command_class_user_credential_delete_credential | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type, | ||
| user_credential_slot_t | credential_slot | ||
| ) |
Send a delete credential command (Credential SET) to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Should exists. Cannot be 0. |
| credential_slot | The slot of the credential. Should exists. Cannot be 0. |
| sl_status_t zwave_command_class_user_credential_delete_user | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id | ||
| ) |
Send a delete user command (User SET) to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. |
| sl_status_t zwave_command_class_user_credential_get_all_users_checksum | ( | attribute_store_node_t | endpoint_node | ) |
Send a All Users Checksum Get command to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| sl_status_t zwave_command_class_user_credential_get_credential_checksum | ( | attribute_store_node_t | endpoint_node, |
| user_credential_type_t | credential_type | ||
| ) |
Send a Credential Checksum Get command to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| credential_type | The type of the credential. Cannot be 0 |
| sl_status_t zwave_command_class_user_credential_get_user_checksum | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id | ||
| ) |
Send a User Checksum Get command to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the source user. Should exists. Cannot be 0. |
| sl_status_t zwave_command_class_user_credential_modify_credential | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | credential_type, | ||
| user_credential_slot_t | credential_slot, | ||
| const char * | credential_data | ||
| ) |
Send a modify credential command (Credential SET) to the end device.
The credential data expected is an UTF-8 string. Some check/conversion will be performed based on the credential type.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Cannot be 0. |
| credential_type | The type of the credential. Should exists. Cannot be 0. |
| credential_slot | The slot of the credential. Should exists. Cannot be 0. |
| credential_data | Raw data of the credential. Checks are performed based on the credential type. |
| sl_status_t zwave_command_class_user_credential_modify_user | ( | attribute_store_node_t | endpoint_node, |
| user_credential_user_unique_id_t | user_id, | ||
| user_credential_type_t | user_type, | ||
| user_credential_rule_t | credential_rule, | ||
| user_credential_user_active_state_t | user_active_state, | ||
| user_credential_expiring_timeout_minutes_t | expiring_timeout, | ||
| user_credential_user_name_encoding_t | user_name_encoding, | ||
| const char * | user_name | ||
| ) |
Send a modify user command (User SET) to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| user_id | The unique ID of the user. Should exists. Should NOT be 0. |
| user_type | The type of the user credential. |
| credential_rule | The rule associated with the user credential. |
| user_active_state | The active state of the user. |
| expiring_timeout | The timeout for the user credential to expire, in minutes. Will be ignored unless user_type == 0x07. |
| user_name_encoding | The encoding format of the user name. |
| user_name | The name of the user. |
| sl_status_t zwave_command_class_user_credential_set_admin_pin_code | ( | attribute_store_node_t | endpoint_node, |
| const char * | credential_data | ||
| ) |
Send a Set Admin Pin Code command to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| credential_data | The new admin pin code. Must contains only digits. |
| bool zwave_command_class_user_credential_supports | ( | attribute_store_node_t | endpoint_node, |
| uint8_t | command_id | ||
| ) |
Test if given command id is supported by the User Credential Command Class.
It will perform a check first to see if given node is supporting the User Credential Command Class. If not it will return false.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| command_id | The command id to test |
| bool zwave_command_class_user_credential_supports_admin_pin_code_deactivation | ( | attribute_store_node_t | endpoint_node | ) |
Return true if the User Credential Command Class supports the Admin Pin Code Deactivation command.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| sl_status_t zwave_command_class_user_credential_uuic_association_set | ( | attribute_store_node_t | endpoint_node, |
| user_credential_type_t | credential_type, | ||
| user_credential_user_unique_id_t | source_user_id, | ||
| user_credential_slot_t | source_credential_slot, | ||
| user_credential_user_unique_id_t | destination_user_id, | ||
| user_credential_slot_t | destination_credential_slot | ||
| ) |
Send a User Unique Identifier Credential Association Set to the end device.
| endpoint_node | The attribute store node of the endpoint where the user credential is located. |
| credential_type | The type of the credential. |
| source_user_id | The unique ID of the source user. Should exists. Cannot be 0. |
| source_credential_slot | The slot of the source credential. Should exists. Cannot be 0. |
| destination_user_id | The unique ID of the destination user. Cannot be 0. |
| destination_credential_slot | The slot of the destination credential. Should not exists. Cannot be 0. |