# otDeviceProperties Struct Reference

# otDeviceProperties


`#include <openthread/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.

<br />

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-device-properties#structot_device_properties_1a1fbc8326607cad941949aac00763ac9a` | `bool` Whether device is a border router. |
| `https://openthread.io/reference/struct/ot-device-properties#structot_device_properties_1af92df7ea9505e7d4046c084eeb4b5f37` | `bool` Operational stability of device (vendor specific). |
| `https://openthread.io/reference/struct/ot-device-properties#structot_device_properties_1a980180536420013eef743e4d124079f8` | `int8_t` Weight adjustment. Should be -16 to +16 (clamped otherwise). |
| `https://openthread.io/reference/struct/ot-device-properties#structot_device_properties_1ac5d04e3c9fd75a9eacd26a1d08f796f7` | `https://openthread.io/reference/group/api-thread-router#group__api-thread-router_1ga72c8f91012f9369a6647f422e66215e7` Power supply config. |
| `https://openthread.io/reference/struct/ot-device-properties#structot_device_properties_1a8c40d66f899a712ad2fa9b521d686a70` | `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](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).