Represents the device properties which are used for calculating the local leader weight on a device.

The parameters are set based on device's capability, whether acting as border router, its power supply config, etc.

mIsUnstable indicates operational stability of device and is determined via a vendor specific mechanism. It can include the following cases:

  • Device internally detects that it loses external power supply more often than usual. What is usual is determined by the vendor.

  • Device internally detects that it reboots more often than usual. What is usual is determined by the vendor.

Public Attributes#

Power supply config.

bool

Whether device is a border router.

bool

Whether device supports CCM (can act as a CCM border router).

bool

Operational stability of device (vendor specific).

int8_t

Weight adjustment. Should be -16 to +16 (clamped otherwise).

Public Attribute Documentation#

mPowerSupply#

otPowerSupply otDeviceProperties::mPowerSupply

Power supply config.


Definition at line 218 of file include/openthread/thread_ftd.h

mIsBorderRouter#

bool otDeviceProperties::mIsBorderRouter

Whether device is a border router.


Definition at line 219 of file include/openthread/thread_ftd.h

mSupportsCcm#

bool otDeviceProperties::mSupportsCcm

Whether device supports CCM (can act as a CCM border router).


Definition at line 220 of file include/openthread/thread_ftd.h

mIsUnstable#

bool otDeviceProperties::mIsUnstable

Operational stability of device (vendor specific).


Definition at line 221 of file include/openthread/thread_ftd.h

mLeaderWeightAdjustment#

int8_t otDeviceProperties::mLeaderWeightAdjustment

Weight adjustment. Should be -16 to +16 (clamped otherwise).


Definition at line 222 of file include/openthread/thread_ftd.h