Represents the Thread MLE counters.
Public Attributes#
Number of times device entered OT_DEVICE_ROLE_DISABLED role.
Number of times device entered OT_DEVICE_ROLE_DETACHED role.
Number of times device entered OT_DEVICE_ROLE_CHILD role.
Number of times device entered OT_DEVICE_ROLE_ROUTER role.
Number of times device entered OT_DEVICE_ROLE_LEADER role.
Number of attach attempts while device was detached.
Number of changes to partition ID.
Number of attempts to attach to a better partition.
Role time tracking.
Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.
Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.
Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.
Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.
Number of milliseconds tracked by previous counters.
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.
172
of file include/openthread/thread.h
mDetachedRole#
uint16_t otMleCounters::mDetachedRole
Number of times device entered OT_DEVICE_ROLE_DETACHED role.
173
of file include/openthread/thread.h
mChildRole#
uint16_t otMleCounters::mChildRole
Number of times device entered OT_DEVICE_ROLE_CHILD role.
174
of file include/openthread/thread.h
mRouterRole#
uint16_t otMleCounters::mRouterRole
Number of times device entered OT_DEVICE_ROLE_ROUTER role.
175
of file include/openthread/thread.h
mLeaderRole#
uint16_t otMleCounters::mLeaderRole
Number of times device entered OT_DEVICE_ROLE_LEADER role.
176
of file include/openthread/thread.h
mAttachAttempts#
uint16_t otMleCounters::mAttachAttempts
Number of attach attempts while device was detached.
177
of file include/openthread/thread.h
mPartitionIdChanges#
uint16_t otMleCounters::mPartitionIdChanges
Number of changes to partition ID.
178
of file include/openthread/thread.h
mBetterPartitionAttachAttempts#
uint16_t otMleCounters::mBetterPartitionAttachAttempts
Number of attempts to attach to a better partition.
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.
187
of file include/openthread/thread.h
mDetachedTime#
uint64_t otMleCounters::mDetachedTime
Number of milliseconds device has been in OT_DEVICE_ROLE_DETACHED role.
188
of file include/openthread/thread.h
mChildTime#
uint64_t otMleCounters::mChildTime
Number of milliseconds device has been in OT_DEVICE_ROLE_CHILD role.
189
of file include/openthread/thread.h
mRouterTime#
uint64_t otMleCounters::mRouterTime
Number of milliseconds device has been in OT_DEVICE_ROLE_ROUTER role.
190
of file include/openthread/thread.h
mLeaderTime#
uint64_t otMleCounters::mLeaderTime
Number of milliseconds device has been in OT_DEVICE_ROLE_LEADER role.
191
of file include/openthread/thread.h
mTrackedTime#
uint64_t otMleCounters::mTrackedTime
Number of milliseconds tracked by previous counters.
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).
202
of file include/openthread/thread.h