otMleCounters

#include <thread.h>

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.
mChildTime
uint64_t
Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.
mDetachedRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_DETACHED role.
mDetachedTime
uint64_t
Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.
mDisabledRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_DISABLED role.
mDisabledTime
uint64_t
Role time tracking.
mLeaderRole
uint16_t
Number of times device entered OT_DEVICE_ROLE_LEADER role.
mLeaderTime
uint64_t
Number of milliseconds device has been in 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.
mRouterTime
uint64_t
Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.
mTrackedTime
uint64_t
Number of milliseconds tracked by previous counters.

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.

mChildTime

uint64_t otMleCounters::mChildTime

Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.

mDetachedRole

uint16_t otMleCounters::mDetachedRole

Number of times device entered OT_DEVICE_ROLE_DETACHED role.

mDetachedTime

uint64_t otMleCounters::mDetachedTime

Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.

mDisabledRole

uint16_t otMleCounters::mDisabledRole

Number of times device entered OT_DEVICE_ROLE_DISABLED role.

mDisabledTime

uint64_t otMleCounters::mDisabledTime

Role time tracking.

When uptime feature is enabled (OPENTHREAD_CONFIG_UPTIME_ENABLE = 1) time spent in each MLE role is tracked.Number of milliseconds device has been in OT_DEVICE_ROLE_DISABLED role.

mLeaderRole

uint16_t otMleCounters::mLeaderRole

Number of times device entered OT_DEVICE_ROLE_LEADER role.

mLeaderTime

uint64_t otMleCounters::mLeaderTime

Number of milliseconds device has been in 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.

mRouterTime

uint64_t otMleCounters::mRouterTime

Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.

mTrackedTime

uint64_t otMleCounters::mTrackedTime

Number of milliseconds tracked by previous counters.

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.