otMleCounters

#include <thread.h>

This structure represents the Thread MLE counters.

Summary

Public attributes

mAttachAttempts
uint16_t
Number of attach attempts while device was detached.
mBetterPartitionAttachAttempts
uint16_t
Number of attempts to attach to a better partition.
mChildRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_CHILD role.
mDetachedRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_DETACHED role.
mDisabledRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_DISABLED role.
mLeaderRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_LEADER role.
mParentChanges
uint16_t
Number of times device changed its parents.
mParitionIdChanges
uint16_t
Number of changes to partition ID.
mRouterRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_ROUTER role.

Public attributes

mAttachAttempts

uint16_t otMleCounters::mAttachAttempts

Number of attach attempts while device was detached.

mBetterPartitionAttachAttempts

uint16_t otMleCounters::mBetterPartitionAttachAttempts

Number of attempts to attach to a better partition.

mChildRole

uint16_t otMleCounters::mChildRole

Number of times device entered OT_DEVICE_ROLE_CHILD role.

mDetachedRole

uint16_t otMleCounters::mDetachedRole

Number of times device entered OT_DEVICE_ROLE_DETACHED role.

mDisabledRole

uint16_t otMleCounters::mDisabledRole

Number of times device entered OT_DEVICE_ROLE_DISABLED role.

mLeaderRole

uint16_t otMleCounters::mLeaderRole

Number of times device entered OT_DEVICE_ROLE_LEADER role.

mParentChanges

uint16_t otMleCounters::mParentChanges

Number of times device changed its parents.

Support for this counter requires the feature option OPENTHREAD_CONFIG_INFORM_PREVIOUS_PARENT_ON_REATTACH to be enabled.

A parent change can happen if device detaches from its current parent and attaches to a different one, or even while device is attached when the periodic parent search feature is enabled (please see option OPENTHREAD_CONFIG_ENABLE_PERIODIC_PARENT_SEARCH).

mParitionIdChanges

uint16_t otMleCounters::mParitionIdChanges

Number of changes to partition ID.

mRouterRole

uint16_t otMleCounters::mRouterRole

Number of times device entered OT_DEVICE_ROLE_ROUTER role.