17#include <nlohmann/json.hpp>
25 static constexpr char LOG_TAG[] =
"diagnostics_neighbor_table";
37 std::vector<std::array<uint8_t, ZIGBEE_EUI64_SIZE>> neighbor_eui64_v;
39 for (uint8_t i = 0U; i < count; i++) {
44 std::array<uint8_t, ZIGBEE_EUI64_SIZE> neighbor_array;
47 neighbor_eui64_v.push_back(neighbor_array);
51 nlohmann::json j_vec(neighbor_eui64_v);
Abstract top level metric from which all diagnostic metric derive from.
Definition: zigpc_diagnostics_metric.hpp:25
zigpc_diagnostics_notification & on_update_complete
Definition: zigpc_diagnostics_metric.hpp:28
std::string serialized_value
Definition: zigpc_diagnostics_metric.hpp:30
std::string metric_id
Definition: zigpc_diagnostics_metric.hpp:29
Definition: zigpc_diagnostics_notification.hpp:20
virtual void notify(std::string metric_id)
Definition: zigpc_diagnostics_notification.hpp:22
Definition: zigpc_neighbor_table_metric.hpp:22
zigpc_neighbor_metric(zigpc_diagnostics_notification ¬if, std::string metric_id)
Definition: zigpc_neighbor_table_metric.hpp:28
void update_value()
Definition: zigpc_neighbor_table_metric.hpp:33
uint8_t value
Definition: zigpc_neighbor_table_metric.hpp:24
static constexpr char LOG_TAG[]
Definition: zigpc_neighbor_table_metric.hpp:25
uint8_t zigbee_eui64_t[ZIGBEE_EUI64_SIZE]
Zigbee Device EUI64 ID.
Definition: zigpc_common_zigbee.h:193
#define ZIGBEE_EUI64_SIZE
Size of EUI64 (an IEEE address) in bytes (8)
Definition: zigpc_common_zigbee.h:39
uint8_t zigpc_gateway_get_neighbor_count()
Get current active count in the neighbor adress table.
sl_status_t zigpc_gateway_get_neighbor_eui64(uint8_t index, zigbee_eui64_t eui64)
Get a specific neighbor EUI64 from its index.