Represents the Thread MLE counters.

Public Attributes#

uint16_t

Number of times device entered OT_DEVICE_ROLE_DISABLED role.

uint16_t

Number of times device entered OT_DEVICE_ROLE_DETACHED role.

uint16_t

Number of times device entered OT_DEVICE_ROLE_CHILD role.

uint16_t

Number of times device entered OT_DEVICE_ROLE_ROUTER role.

uint16_t

Number of times device entered OT_DEVICE_ROLE_LEADER role.

uint16_t

Number of attach attempts while device was detached.

uint16_t

Number of changes to partition ID.

uint16_t

Number of attempts to attach to a better partition.

uint64_t

Role time tracking.

uint64_t

Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.

uint64_t

Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.

uint64_t

Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.

uint64_t

Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.

uint64_t

Number of milliseconds tracked by previous counters.

uint16_t

Number of times device changed its parent.

Public Attribute Documentation#

mDisabledRole#

uint16_t otMleCounters::mDisabledRole

Number of times device entered OT_DEVICE_ROLE_DISABLED role.


Definition at line 172 of file include/openthread/thread.h

mDetachedRole#

uint16_t otMleCounters::mDetachedRole

Number of times device entered OT_DEVICE_ROLE_DETACHED role.


Definition at line 173 of file include/openthread/thread.h

mChildRole#

uint16_t otMleCounters::mChildRole

Number of times device entered OT_DEVICE_ROLE_CHILD role.


Definition at line 174 of file include/openthread/thread.h

mRouterRole#

uint16_t otMleCounters::mRouterRole

Number of times device entered OT_DEVICE_ROLE_ROUTER role.


Definition at line 175 of file include/openthread/thread.h

mLeaderRole#

uint16_t otMleCounters::mLeaderRole

Number of times device entered OT_DEVICE_ROLE_LEADER role.


Definition at line 176 of file include/openthread/thread.h

mAttachAttempts#

uint16_t otMleCounters::mAttachAttempts

Number of attach attempts while device was detached.


Definition at line 177 of file include/openthread/thread.h

mPartitionIdChanges#

uint16_t otMleCounters::mPartitionIdChanges

Number of changes to partition ID.


Definition at line 178 of file include/openthread/thread.h

mBetterPartitionAttachAttempts#

uint16_t otMleCounters::mBetterPartitionAttachAttempts

Number of attempts to attach to a better partition.


Definition at line 179 of file include/openthread/thread.h

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.


Definition at line 187 of file include/openthread/thread.h

mDetachedTime#

uint64_t otMleCounters::mDetachedTime

Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.


Definition at line 188 of file include/openthread/thread.h

mChildTime#

uint64_t otMleCounters::mChildTime

Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.


Definition at line 189 of file include/openthread/thread.h

mRouterTime#

uint64_t otMleCounters::mRouterTime

Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.


Definition at line 190 of file include/openthread/thread.h

mLeaderTime#

uint64_t otMleCounters::mLeaderTime

Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.


Definition at line 191 of file include/openthread/thread.h

mTrackedTime#

uint64_t otMleCounters::mTrackedTime

Number of milliseconds tracked by previous counters.


Definition at line 192 of file include/openthread/thread.h

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


Definition at line 202 of file include/openthread/thread.h