Skip to content

Commit

Permalink
GH-43: Unify_UserCredential cluster integration in ZPC
Browse files Browse the repository at this point in the history
Bug-SiliconLabs: UIC-3222
Bug-GitHub: #43
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
  • Loading branch information
silabs-borisl authored and rzr committed Apr 24, 2024
1 parent c205ec1 commit 924445b
Show file tree
Hide file tree
Showing 15 changed files with 4,180 additions and 90 deletions.
16 changes: 16 additions & 0 deletions applications/zpc/components/dotdot_mapper/rules/UserCredential.uam
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// User Credential CC
def zwUSER_CREDENTIAL_USER_COUNT 0x8302
def zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES 0x8303
def zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES 0x8308

// This represents short CamelCase labels the attributes in the DotDot UserCredential cluster
def zb_SupportedUserUniqueIdentifiers 0xfd080000
def zb_SupportedCredentialRules 0xfd080001
def zb_SupportedCredentialTypes 0xfd080002
def zb_SupportedUserTypes 0xfd080003

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
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ find_path(nlohmann_json_include nlohmann/json.hpp REQUIRED)
add_library(
zcl_cluster_servers
src/configuration_parameter_cluster_server.cpp
src/user_credential_cluster_server.cpp
src/user_code_cluster_server.cpp
src/zcl_binding_cluster_server.cpp
src/zcl_cluster_servers.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

0 comments on commit 924445b

Please sign in to comment.