Skip to content

Commit d00dcbf

Browse files
committed
components/esp_matter:Add missing tx_error_count attribute for ethernet_network_diagnostics cluster
1 parent de28147 commit d00dcbf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/esp_matter/data_model/esp_matter_attribute.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,12 @@ attribute_t *create_packet_tx_count(cluster_t *cluster, uint64_t value)
12741274
ATTRIBUTE_FLAG_MANAGED_INTERNALLY, esp_matter_uint64(value));
12751275
}
12761276

1277+
attribute_t *create_tx_error_count(cluster_t *cluster, uint64_t value)
1278+
{
1279+
return esp_matter::attribute::create(cluster, EthernetNetworkDiagnostics::Attributes::TxErrCount::Id,
1280+
ATTRIBUTE_FLAG_MANAGED_INTERNALLY, esp_matter_uint64(value));
1281+
}
1282+
12771283
attribute_t *create_collision_count(cluster_t *cluster, uint64_t value)
12781284
{
12791285
return esp_matter::attribute::create(cluster, EthernetNetworkDiagnostics::Attributes::CollisionCount::Id,

0 commit comments

Comments
 (0)