mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components/esp-matter: add icd_management::maximum_check_in_backoff
Create API was missing for this and we did create this when adding check in protocol support feature.
This commit is contained in:
@@ -747,6 +747,12 @@ attribute_t *create_operating_mode(cluster_t *cluster, uint8_t value)
|
||||
ATTRIBUTE_FLAG_MANAGED_INTERNALLY, esp_matter_enum8(value));
|
||||
}
|
||||
|
||||
attribute_t *create_maximum_check_in_backoff(cluster_t *cluster, uint32_t value)
|
||||
{
|
||||
return esp_matter::attribute::create(cluster, IcdManagement::Attributes::MaximumCheckInBackOff::Id,
|
||||
ATTRIBUTE_FLAG_MANAGED_INTERNALLY, esp_matter_uint32(value));
|
||||
}
|
||||
|
||||
} /* attribute */
|
||||
} /* icd_management */
|
||||
|
||||
|
||||
@@ -213,6 +213,7 @@ attribute_t *create_clients_supported_per_fabric(cluster_t *cluster, uint16_t va
|
||||
attribute_t *create_user_active_mode_trigger_hint(cluster_t *cluster, uint32_t value);
|
||||
attribute_t *create_user_active_mode_trigger_instruction(cluster_t *cluster, char *value, uint16_t length);
|
||||
attribute_t *create_operating_mode(cluster_t *cluster, uint8_t value);
|
||||
attribute_t *create_maximum_check_in_backoff(cluster_t *cluster, uint32_t value);
|
||||
} /* attribute */
|
||||
} /* icd_management */
|
||||
|
||||
|
||||
@@ -378,6 +378,7 @@ esp_err_t add(cluster_t *cluster)
|
||||
attribute::create_registered_clients(cluster, NULL, 0, 0);
|
||||
attribute::create_icd_counter(cluster, 0);
|
||||
attribute::create_clients_supported_per_fabric(cluster, 0);
|
||||
attribute::create_maximum_check_in_backoff(cluster, 0);
|
||||
|
||||
/* Commands */
|
||||
command::create_register_client(cluster);
|
||||
|
||||
Reference in New Issue
Block a user