mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
readme: Memory numbers update
Also docs link update blemesh_bridge: Readme fixes esp_matter_cluster: Add missing cluster_revision attributes
This commit is contained in:
@@ -589,7 +589,7 @@ namespace diagnostics_network_wifi {
|
||||
const function_generic_t *function_list = NULL;
|
||||
const int function_flags = CLUSTER_FLAG_NONE;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, uint8_t flags)
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
{
|
||||
cluster_t *cluster = cluster::create(endpoint, WiFiNetworkDiagnostics::Id, flags);
|
||||
if (!cluster) {
|
||||
@@ -613,6 +613,13 @@ cluster_t *create(endpoint_t *endpoint, uint8_t flags)
|
||||
attribute::create_wifi_version(cluster, 0);
|
||||
attribute::create_channel_number(cluster, 0);
|
||||
attribute::create_rssi(cluster, 0);
|
||||
|
||||
/* Attributes not managed internally */
|
||||
if (config) {
|
||||
global::attribute::create_cluster_revision(cluster, config->cluster_revision);
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Config is NULL. Cannot add some attributes.");
|
||||
}
|
||||
}
|
||||
|
||||
return cluster;
|
||||
@@ -623,7 +630,7 @@ namespace diagnostics_network_thread {
|
||||
const function_generic_t *function_list = NULL;
|
||||
const int function_flags = CLUSTER_FLAG_NONE;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, uint8_t flags)
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
|
||||
{
|
||||
cluster_t *cluster = cluster::create(endpoint, ThreadNetworkDiagnostics::Id, flags);
|
||||
if (!cluster) {
|
||||
@@ -659,6 +666,13 @@ cluster_t *create(endpoint_t *endpoint, uint8_t flags)
|
||||
attribute::create_channel_mask(cluster, NULL, 0);
|
||||
attribute::create_operational_dataset_components(cluster, NULL, 0, 0);
|
||||
attribute::create_active_network_faults(cluster, NULL, 0, 0);
|
||||
|
||||
/* Attributes not managed internally */
|
||||
if (config) {
|
||||
global::attribute::create_cluster_revision(cluster, config->cluster_revision);
|
||||
} else {
|
||||
ESP_LOGE(TAG, "Config is NULL. Cannot add some attributes.");
|
||||
}
|
||||
}
|
||||
|
||||
return cluster;
|
||||
|
||||
@@ -139,11 +139,21 @@ cluster_t *create(endpoint_t *endpoint, uint8_t flags);
|
||||
} /* group_key_management */
|
||||
|
||||
namespace diagnostics_network_wifi {
|
||||
cluster_t *create(endpoint_t *endpoint, uint8_t flags);
|
||||
typedef struct config {
|
||||
uint16_t cluster_revision;
|
||||
config() : cluster_revision(1) {}
|
||||
} config_t;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags);
|
||||
} /* diagnostics_network_wifi */
|
||||
|
||||
namespace diagnostics_network_thread {
|
||||
cluster_t *create(endpoint_t *endpoint, uint8_t flags);
|
||||
typedef struct config {
|
||||
uint16_t cluster_revision;
|
||||
config() : cluster_revision(1) {}
|
||||
} config_t;
|
||||
|
||||
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags);
|
||||
} /* diagnostics_network_thread */
|
||||
|
||||
namespace identify {
|
||||
|
||||
@@ -75,10 +75,10 @@ endpoint_t *create(node_t *node, config_t *config, uint8_t flags)
|
||||
group_key_management::create(endpoint, CLUSTER_FLAG_SERVER);
|
||||
|
||||
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
|
||||
diagnostics_network_wifi::create(endpoint, CLUSTER_FLAG_SERVER);
|
||||
diagnostics_network_wifi::create(endpoint, &(config->diagnostics_network_wifi), CLUSTER_FLAG_SERVER);
|
||||
#endif
|
||||
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD
|
||||
diagnostics_network_thread::create(endpoint, CLUSTER_FLAG_SERVER);
|
||||
diagnostics_network_thread::create(endpoint, &(config->diagnostics_network_thread), CLUSTER_FLAG_SERVER);
|
||||
#endif
|
||||
|
||||
return endpoint;
|
||||
|
||||
@@ -39,6 +39,8 @@ typedef struct config {
|
||||
general_diagnostics::config_t general_diagnostics;
|
||||
administrator_commissioning::config_t administrator_commissioning;
|
||||
operational_credentials::config_t operational_credentials;
|
||||
diagnostics_network_wifi::config_t diagnostics_network_wifi;
|
||||
diagnostics_network_thread::config_t diagnostics_network_thread;
|
||||
} config_t;
|
||||
|
||||
uint32_t get_device_type_id();
|
||||
|
||||
Reference in New Issue
Block a user