Grizzly.ZWave.CommandClasses.UserCredential (grizzly v8.15.3)
View SourceUser Credential command class
Summary
Functions
Decodes credential data from a binary based on its type.
Decodes a credential learn operation from a byte value.
Decodes credential operation from a byte value
Decodes a credential rule from a byte value
Decodes a credential type from a byte value
Decodes modifier type from a byte value
Decodes a user operation from a byte value
Decodes a user type from a byte value
Encodes credential data to a binary based on its type.
Encodes the credential learn operation to a byte value.
Encodes credential operation to a byte value
Encodes a credential rule to a byte value
Encodes a credential type to a byte value
Encodes modifier type to a byte value
Encodes a user operation to a byte value
Encodes a user type to a byte value
Types
@type credential_capabilities() :: %{ learn_supported?: boolean(), supported_slots: pos_integer(), min_length: pos_integer(), max_length: pos_integer(), recommended_learn_timeout: non_neg_integer(), learn_steps: non_neg_integer(), hash_max_length: non_neg_integer() }
@type credential_learn_operation() :: :add | :modify
@type credential_operation() :: :add | :modify | :delete
@type credential_rule() :: :single | :dual | :triple
@type credential_type() ::
:none
| :pin_code
| :password
| :rfid
| :ble
| :nfc
| :uwb
| :eye_biometric
| :face_biometric
| :finger_biometric
| :hand_biometric
| :unspecified_biometric
@type modifier_type() :: :dne | :unknown | :zwave | :local | :other
@type user_operation() :: :add | :modify | :delete
@type user_type() ::
:general
| :programming
| :non_access
| :duress
| :disposable
| :expiring
| :remote_only
Functions
@spec decode_credential_data(credential_type(), binary()) :: binary()
Decodes credential data from a binary based on its type.
@spec decode_credential_learn_operation(byte()) :: credential_learn_operation() | :unknown
Decodes a credential learn operation from a byte value.
@spec decode_credential_operation(byte()) :: credential_operation() | :unknown
Decodes credential operation from a byte value
@spec decode_credential_rule(byte()) :: credential_rule() | :unknown
Decodes a credential rule from a byte value
@spec decode_credential_type(byte()) :: credential_type() | :unknown
Decodes a credential type from a byte value
@spec decode_modifier_type(byte()) :: modifier_type() | :unknown
Decodes modifier type from a byte value
@spec decode_user_operation(byte()) :: user_operation() | :unknown
Decodes a user operation from a byte value
Decodes a user type from a byte value
@spec encode_credential_data(credential_type(), binary()) :: binary()
Encodes credential data to a binary based on its type.
Passwords are encoded as UTF-16 strings, while other types are left as-is.
@spec encode_credential_learn_operation(credential_learn_operation()) :: byte()
Encodes the credential learn operation to a byte value.
@spec encode_credential_operation(credential_operation()) :: byte()
Encodes credential operation to a byte value
@spec encode_credential_rule(credential_rule()) :: byte()
Encodes a credential rule to a byte value
@spec encode_credential_type(credential_type()) :: byte()
Encodes a credential type to a byte value
@spec encode_modifier_type(modifier_type()) :: byte()
Encodes modifier type to a byte value
@spec encode_user_operation(user_operation()) :: byte()
Encodes a user operation to a byte value
Encodes a user type to a byte value