4#if defined(USE_OPENTHREAD) && defined(USE_SENSOR)
9#include <openthread/link.h>
10#include <openthread/thread.h>
19 if (otThreadGetParentAverageRssi(instance, &rssi) != OT_ERROR_NONE) {
32 if (otThreadGetParentLastRssi(instance, &rssi) != OT_ERROR_NONE) {
44 otRouterInfo parent_info;
45 if (otThreadGetParentInfo(instance, &parent_info) != OT_ERROR_NONE) {
57 otRouterInfo parent_info;
58 if (otThreadGetParentInfo(instance, &parent_info) != OT_ERROR_NONE) {
109 this->
publish_state(otThreadGetMleCounters(instance)->mAttachAttempts);
117 this->
publish_state(otThreadGetMleCounters(instance)->mParentChanges);
125 this->
publish_state(otThreadGetMleCounters(instance)->mPartitionIdChanges);
void dump_config() override
void update_instance(otInstance *instance) override
void update_instance(otInstance *instance) override
void dump_config() override
void update_instance(otInstance *instance) override
void dump_config() override
void update_instance(otInstance *instance) override
void dump_config() override
void dump_config() override
void update_instance(otInstance *instance) override
void update_instance(otInstance *instance) override
void dump_config() override
void dump_config() override
void update_instance(otInstance *instance) override
void update_instance(otInstance *instance) override
void dump_config() override
void update_instance(otInstance *instance) override
void dump_config() override
void update_instance(otInstance *instance) override
void dump_config() override
void dump_config() override
void update_instance(otInstance *instance) override
Base-class for all sensors.
void publish_state(float state)
Publish a new state to the front-end.