Skip to content

Commit

Permalink
SiliconLabsGH-23: [Patch Integration] Implement command GetAllPINCode…
Browse files Browse the repository at this point in the history
…s in ZPC

This is a patch integration into the Unify codebase.
This may be squashed into the original commit.

Origin: SiliconLabs#23
Bug-SiliconLabs: UIC-3201
Signed-off-by: Nenad Kljajic <[email protected]>
Forwarded-SiliconLabs: thdubois/UIC-3072/c4/develop
Last-Update: 2024-01-18
(cherry picked from commit db74b5f2abe795d3ee1f54c8387dec9d4ded81be)
  • Loading branch information
Nenad Kljajic authored and Thomasdjb committed Jan 18, 2024
1 parent 1ec5ccd commit bbacd88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ sl_status_t user_code_cluster_server_init()
// Register the callback for handling commands from IoT service
uic_mqtt_dotdot_door_lock_setpin_code_callback_set(&set_pin_code_command);
uic_mqtt_dotdot_door_lock_getpin_code_callback_set(&get_pin_code_command);
uic_mqtt_dotdot_door_lock_get_allpin_codes_callback_set(&get_all_pin_codes_command);
uic_mqtt_dotdot_door_lock_get_all_pin_codes_callback_set(&get_all_pin_codes_command);
uic_mqtt_dotdot_door_lock_clearpin_code_callback_set(&clear_pin_code_command);
uic_mqtt_dotdot_door_lock_clear_allpin_codes_callback_set(
&clear_all_pin_codes_command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -980,15 +980,15 @@ static void zwave_command_class_user_code_on_code_update(
}

if (attribute_store_is_desired_defined(updated_node) == false) {
uic_mqtt_dotdot_door_lock_command_getpin_code_response_fields_t fields =
uic_mqtt_dotdot_door_lock_command_get_pin_code_response_fields_t fields =
{
.userid = (DrlkPINUserID) user_id,
.user_status = (DrlkUserStatus) user_status,
.user_type = (DrlkUserType) ZCL_DRLK_USER_TYPE_UNRESTRICTED_USER,
.code = pin_code
};

uic_mqtt_dotdot_door_lock_publish_generated_getpin_code_response_command(
uic_mqtt_dotdot_door_lock_publish_generated_get_pin_code_response_command(
node_unid, endpoint_id, &fields);
}
}
Expand Down

0 comments on commit bbacd88

Please sign in to comment.