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 parent.
mPartitionIdChanges
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 parent.

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_PARENT_SEARCH_ENABLE).

mPartitionIdChanges

uint16_t otMleCounters::mPartitionIdChanges

Number of changes to partition ID.

mRouterRole

uint16_t otMleCounters::mRouterRole

Number of times device entered OT_DEVICE_ROLE_ROUTER role.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.