Skip to content

Commit 087da0e

Browse files
committed
GH-43: Unify_UserCredential cluster integration in ZPC
Bug-SiliconLabs: UIC-3222 Bug-GitHub: #43 Signed-off-by: Philippe Coval <[email protected]>
1 parent 1c934f2 commit 087da0e

15 files changed

+4180
-90
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// User Credential CC
2+
def zwUSER_CREDENTIAL_USER_COUNT 0x8302
3+
def zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES 0x8303
4+
def zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES 0x8308
5+
6+
// This represents short CamelCase labels the attributes in the DotDot UserCredential cluster
7+
def zb_SupportedUserUniqueIdentifiers 0xfd080000
8+
def zb_SupportedCredentialRules 0xfd080001
9+
def zb_SupportedCredentialTypes 0xfd080002
10+
def zb_SupportedUserTypes 0xfd080003
11+
12+
scope 0 chain_reaction(0) {
13+
r'zb_SupportedUserUniqueIdentifiers = r'zwUSER_CREDENTIAL_USER_COUNT
14+
r'zb_SupportedCredentialRules = r'zwUSER_CREDENTIAL_SUPPORTED_CREDENTIAL_RULES
15+
r'zb_SupportedUserTypes = r'zwUSER_CREDENTIAL_SUPPORTED_USER_TYPES
16+
}

applications/zpc/components/zcl_cluster_servers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ find_path(nlohmann_json_include nlohmann/json.hpp REQUIRED)
88
add_library(
99
zcl_cluster_servers
1010
src/configuration_parameter_cluster_server.cpp
11+
src/user_credential_cluster_server.cpp
1112
src/user_code_cluster_server.cpp
1213
src/zcl_binding_cluster_server.cpp
1314
src/zcl_cluster_servers.cpp

applications/zpc/components/zcl_cluster_servers/src/configuration_parameter_cluster_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static void
521521
clear_configuration_parameters_vector(configuration);
522522

523523
// Do it again for the Reported value
524-
get_configuration_parameters(endpoint_id_node,
524+
get_configuration_parameters(endpoint_id_node,
525525
configuration,
526526
REPORTED_ATTRIBUTE);
527527
uic_mqtt_dotdot_configuration_parameters_configuration_parameters_publish(

0 commit comments

Comments
 (0)