otDeviceProperties

#include <thread_ftd.h>

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

Summary

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

mIsBorderRouter
bool
Whether device is a border router.
mIsUnstable
bool
Operational stability of device (vendor specific).
mLeaderWeightAdjustment
int8_t
Weight adjustment. Should be -16 to +16 (clamped otherwise).
mPowerSupply
Power supply config.
mSupportsCcm
bool
Whether device supports CCM (can act as a CCM border router).

Public attributes

mIsBorderRouter

bool otDeviceProperties::mIsBorderRouter

Whether device is a border router.

mIsUnstable

bool otDeviceProperties::mIsUnstable

Operational stability of device (vendor specific).

mLeaderWeightAdjustment

int8_t otDeviceProperties::mLeaderWeightAdjustment

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

mPowerSupply

otPowerSupply otDeviceProperties::mPowerSupply

Power supply config.

mSupportsCcm

bool otDeviceProperties::mSupportsCcm

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

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.