Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-43: z-wave: Support of user credential cc #43

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
GH-43: Unify_UserCredential cluster integration in ZPC
Forwarded: #43
Bug-SiliconLabs: UIC-3222
Bug-Github: #43
  • Loading branch information
silabs-borisl authored and rzr committed Oct 28, 2024
commit 9eb62ebb9209c3b9ed68e131e4351c2b2512ac30
27 changes: 27 additions & 0 deletions applications/zpc/components/dotdot_mapper/rules/UserCredential.uam
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// User Credential CC
def zwUSER_CREDENTIAL_USER_COUNT 0x8302
def zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES 0x8303
def zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES 0x8308
def zwUSER_CREDENTIAL_SUPPORT_CREDENTIAL_CHECKSUM 0x8309
def zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE 0x830A
def zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE_DEACTIVATION 0x830B

// This represents short CamelCase labels the attributes in the DotDot UserCredential cluster
def zb_SupportedUserUniqueIdentifiers 0xfd080000
def zb_SupportedCredentialRules 0xfd080001
// def zb_SupportedCredentialTypes 0xfd080002 Binding is done in user_credential directly
def zb_SupportedUserTypes 0xfd080003
def zb_SupportCredentialChecksum 0xfd080004
def zb_SupportAdminPinCode 0xfd080005
def zb_SupportAdminPinCodeDeactivation 0xfd080006
// def zb_AdminPinCode 0xfd080007 Binding is done in user_credential_cluster_server directly

scope 0 chain_reaction(0) {
r'zb_SupportedUserUniqueIdentifiers = r'zwUSER_CREDENTIAL_USER_COUNT
r'zb_SupportedCredentialRules = r'zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES
r'zb_SupportedUserTypes = r'zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES

r'zb_SupportCredentialChecksum = r'zwUSER_CREDENTIAL_SUPPORT_CREDENTIAL_CHECKSUM
r'zb_SupportAdminPinCode = r'zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE
r'zb_SupportAdminPinCodeDeactivation = r'zwUSER_CREDENTIAL_SUPPORT_ADMIN_PIN_CODE_DEACTIVATION
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ add_library(
zcl_cluster_servers
src/configuration_parameter_cluster_server.cpp
src/humidity_control_cluster_server.c
src/user_credential_cluster_server.cpp
src/user_code_cluster_server.cpp
src/fan_control_cluster_server.c
src/zcl_binding_cluster_server.cpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ static void
clear_configuration_parameters_vector(configuration);

// Do it again for the Reported value
get_configuration_parameters(endpoint_id_node,
get_configuration_parameters(endpoint_id_node,
configuration,
REPORTED_ATTRIBUTE);
uic_mqtt_dotdot_configuration_parameters_configuration_parameters_publish(
Expand Down
Loading