otMleCounters
    #include <thread.h>
  
代表 Thread MLE 計數器。
摘要
| 公開屬性 | |
|---|---|
| mAttachAttempts | uint16_t裝置卸離時的連接嘗試次數。 | 
| mBetterPartitionAttachAttempts | uint16_t嘗試附加至改善分區的次數。 | 
| mChildRole | uint16_t裝置進入 OT_DEVICE_ROLE_CHILD 角色的次數。 | 
| mChildTime | uint64_t裝置具備 OT_DEVICE_ROLE_CHILD 角色的毫秒數。 | 
| mDetachedRole | uint16_t裝置進入 OT_DEVICE_ROLE_DETACHED 角色的次數。 | 
| mDetachedTime | uint64_t具備 OT_DEVICE_ROLE_DETACHED 角色的裝置毫秒數。 | 
| mDisabledRole | uint16_t裝置進入 OT_DEVICE_ROLE_DISABLED 角色的次數。 | 
| mDisabledTime | uint64_t角色時間追蹤。 | 
| mLeaderRole | uint16_t裝置進入 OT_DEVICE_ROLE_LEADER 角色的次數。 | 
| mLeaderTime | uint64_t具備 OT_DEVICE_ROLE_LEADER 角色的裝置毫秒數。 | 
| mParentChanges | uint16_t裝置變更父項的次數。 | 
| mPartitionIdChanges | uint16_t分區 ID 的變更次數。 | 
| mRouterRole | uint16_t裝置進入 OT_DEVICE_ROLE_ROUTER 角色的次數。 | 
| mRouterTime | uint64_t具備 OT_DEVICE_ROLE_ROUTER 角色的裝置毫秒數。 | 
| mTrackedTime | uint64_t由先前計數器追蹤的毫秒數。 | 
公開屬性
mAttachAttempts
uint16_t otMleCounters::mAttachAttempts
裝置卸離時的連接嘗試次數。
mBetterPartitionAttachAttempts
uint16_t otMleCounters::mBetterPartitionAttachAttempts
嘗試附加至改善分區的次數。
mChildRole
uint16_t otMleCounters::mChildRole
裝置進入 OT_DEVICE_ROLE_CHILD 角色的次數。
mChildTime
uint64_t otMleCounters::mChildTime
裝置具備 OT_DEVICE_ROLE_CHILD 角色的毫秒數。
mDetachedRole
uint16_t otMleCounters::mDetachedRole
裝置進入 OT_DEVICE_ROLE_DETACHED 角色的次數。
mDetachedTime
uint64_t otMleCounters::mDetachedTime
具備 OT_DEVICE_ROLE_DETACHED 角色的裝置毫秒數。
mDisabledRole
uint16_t otMleCounters::mDisabledRole
裝置進入 OT_DEVICE_ROLE_DISABLED 角色的次數。
mDisabledTime
uint64_t otMleCounters::mDisabledTime
角色時間追蹤。
當啟用運作時間功能 (OPENTHREAD_CONFIG_UPTIME_ENABLE = 1) 時,系統會追蹤每個 MLE 角色的使用時間。裝置處於 OT_DEVICE_ROLE_DISABLED 角色的毫秒數。
mLeaderRole
uint16_t otMleCounters::mLeaderRole
裝置進入 OT_DEVICE_ROLE_LEADER 角色的次數。
mLeaderTime
uint64_t otMleCounters::mLeaderTime
具備 OT_DEVICE_ROLE_LEADER 角色的裝置毫秒數。
mParentChanges
uint16_t otMleCounters::mParentChanges
裝置變更父項的次數。
裝置如果從目前父項卸離並連接至其他父項,甚至在啟用定期父項搜尋功能時,也可能會發生父項變更 (請查看 OPENTHREAD_CONFIG_PARENT_SEARCH_ENABLE 選項)。
mPartitionIdChanges
uint16_t otMleCounters::mPartitionIdChanges
分區 ID 的變更次數。
mRouterRole
uint16_t otMleCounters::mRouterRole
裝置進入 OT_DEVICE_ROLE_ROUTER 角色的次數。
mRouterTime
uint64_t otMleCounters::mRouterTime
具備 OT_DEVICE_ROLE_ROUTER 角色的裝置毫秒數。
mTrackedTime
uint64_t otMleCounters::mTrackedTime
由先前計數器追蹤的毫秒數。
資源
OpenThread API 參考資料主題源自原始碼,請前往 GitHub 取得。如要瞭解詳情或對說明文件做出貢獻,請參閱資源。