# Instance

This module includes functions that control the OpenThread Instance.

## Summary

| ### Typedefs ||
|---|---|
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaf0bc3ec7d28915d6440c739b0200920f` | typedef `uint32_t` Represents a bit-field indicating specific state/configuration that has changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960` | typedef `struct https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960` Represents the OpenThread instance structure. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaaa4e276a109971ae3f0d5817049e33f9)(otChangedFlags aFlags, void *aContext)` | typedef `void(*` Pointer is called to notify certain configuration or state changes within OpenThread. |

| ### Functions ||
|---|---|
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga10ec8d9383f371a7c252542b1fe85c17(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `const char *` Gets the OpenThread radio version string. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga768af70c94547bf06bb42faf6448efe8(void)` | `const char *` Gets the OpenThread version string. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaa54f0ac5e43333d307008c54cccaafce(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Erases all the OpenThread persistent info (network settings) stored on non-volatile memory. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga20530f180bc1dc8500145fc2bde9de57(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `void` Deletes all the settings stored on non-volatile memory, and then triggers a platform reset. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaab0dc090f71b80671ff3dad620314b43(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `void` Disables the OpenThread library. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gab2dc6286f0697cfea9bf0b5ceb0091af(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `uint32_t` Gets the instance identifier. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga5f49bdc9c0f77e37f97675da47936213(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `uint8_t` Gets the index of the OpenThread instance when multiple instance is in use. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4faa22a7bfb41d223378e9b31803529d(uint8_t aIdx)` | `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *` Gets the pointer to an OpenThread instance with the provided index when multiple instances are in use. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga04c7c478f4120e5bfda1661efff3ae19(void)` | `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *` Gets the pointer to the single OpenThread instance when multiple instances are not in use. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gae0902e344a78e95dc1d7ba19de6af139(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `uint64_t` Returns the current instance uptime (in msec). |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4109e5a9ea01ccc1fd53d0f55bfdaac8(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, char *aBuffer, uint16_t aSize)` | `void` Returns the current instance uptime as a human-readable string. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaa17b01c0f089c09beaefac3f25439c57(void *aInstanceBuffer, size_t *aInstanceBufferSize)` | `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *` Initializes the OpenThread library. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga0a4b528b35cf0025031508b3e3316d2b(uint8_t aIdx)` | `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *` Initializes the OpenThread instance. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gafa70982abac93a0b21eaf3002e597d26(void)` | `https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *` Initializes the static single instance of the OpenThread library. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaa21ab36440b658fbaf758c79c4e3ed8e(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `void` Triggers a platform reset. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4f8af5813a9d4cb03a966feae66a8233(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `void` Resets the internal states of the OpenThread radio stack. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaf5f94d875bc9db8d19f708e4ef7fb000(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Triggers a platform reset to bootloader mode, if supported. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gac3be416812d862afa6d2002fc428463d(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, https://openthread.io/reference/group/api-instance#group__api-instance_1gaaa4e276a109971ae3f0d5817049e33f9 aCallback, void *aContext)` | `void` Removes a callback to indicate when certain configuration or state changes within OpenThread. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaa156314f5f9112e6571f2703506b13a4(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, https://openthread.io/reference/group/api-instance#group__api-instance_1gaaa4e276a109971ae3f0d5817049e33f9 aCallback, void *aContext)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Registers a callback to indicate when certain configuration or state changes within OpenThread. |

| ### Macros ||
|---|---|
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga9be0d508a331900ae75ecdff3d9cc8fa (1U << 28)` | Active Operational Dataset changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaf0f3758a81cb857c76d5f5636e5ae6f9 (1U << 21)` | Channel Manager new pending Thread channel changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga0231b680dd2f7529bc110c04e1ae3579 (1U << 23)` | Commissioner state changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaced8f5312b2bf0415faaa65fe71a610a (1U << 0)` | IPv6 address was added. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga96c7f2261e381f091fecedf8e0461647 (1U << 1)` | IPv6 address was removed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga5653e505d0dbcae4605bec3687d2f0f5 (1U << 12)` | Subscribed to a IPv6 multicast address. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga430d1d048868ca47fb178557294ad302 (1U << 13)` | Unsubscribed from a IPv6 multicast address. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga1aa4a583f871a29201a188ad37fa2604 (1U << 27)` | Joiner state changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga166a68e06d2f6b9c5f2cb89bcfbff474 (1U << 30)` | The state of NAT64 translator changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gac0c5c963a0285b4d112cae181694377e (1U << 18)` | Network key changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gabfc726b828aed6d713ec6b7ce71af8a2 (1U << 31)` | Parent link quality changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga71d8140b3a4a12f2bcec9c294285181a (1U << 29)` | Pending Operational Dataset changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga335a1748a40f65b26111e76861485305 (1U << 19)` | PSKc changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaea7fe614106dec9ba6c3a54dd9e36106 (1U << 20)` | Security Policy changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gae66b9267da592412e7903f97c2c0e1a0 (1U << 22)` | Supported channel mask changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaf14c98dadd4396a9c62ff528edc4689e (1U << 26)` | Local Backbone Router configuration changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4c9c24c6a7755277fbb39954e6769f14 (1U << 25)` | Backbone Router state changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga5ce7d87665d6e88a9bfdbbdfb5f00839 (1U << 14)` | Thread network channel changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga28046c875471f62c40cb69baa5ac4e14 (1U << 10)` | Child was added. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga79a433c3ffd70beec912865b6535749a (1U << 11)` | Child was removed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaa0038e87188719753898f249eccd8e69 (1U << 17)` | Thread network extended PAN ID changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga599881c43aaca08b626b6ddf021ffc58 (1U << 8)` | Thread Key Sequence changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga1d62e139d055d9924531b1bc3cf81afc (1U << 3)` | The link-local address changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gafcaa8c42e78f1ae5608bc7d5767fe386 (1U << 4)` | The mesh-local address changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga540cbe2a69a6af6d2f3ace0cd02c57c5 (1U << 9)` | Thread Network Data changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga87d49e0bfd2b4608d961334ba619726e (1U << 24)` | Thread network interface state changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4ee0d1385a2eae6687ee91881937625b (1U << 16)` | Thread network name changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga3937d1e27f3686729fec864057bf94fe (1U << 15)` | Thread network PAN Id changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gabe06b5b4fa48a838fcc2ad256788ef46 (1U << 7)` | Partition ID changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1gaff37bf9d6580dcaf4ac499cefd46b0e9 (1U << 5)` | RLOC was added. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga4ed6c3727b8fdd82a4222b737ddd8dce (1U << 6)` | RLOC was removed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga41587d017ebd1863e18d1512ec2712a4 (1U << 2)` | Role (disabled, detached, child, router, leader) changed. |
| `https://openthread.io/reference/group/api-instance#group__api-instance_1ga0901b663e2d7facf08c86d2a8cbea048 24` | Recommended size for string representation of uptime. |

## Typedefs

### otChangedFlags

```
uint32_t otChangedFlags
```
Represents a bit-field indicating specific state/configuration that has changed.

See `OT_CHANGED_*` definitions.

### otInstance

```
struct otInstance otInstance
```
Represents the OpenThread instance structure.

### otStateChangedCallback

```
void(* otStateChangedCallback)(otChangedFlags aFlags, void *aContext)
```
Pointer is called to notify certain configuration or state changes within OpenThread.

<br />

Details Parameters `[in] aFlags` A bit-field indicating specific state that has changed. See `OT_CHANGED_*` definitions. `[in] aContext` A pointer to application-specific context.

## Functions

### otGetRadioVersionString

```
const char * otGetRadioVersionString(
  otInstance *aInstance
)
```
Gets the OpenThread radio version string.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. **Returns** A pointer to the OpenThread radio version.

### otGetVersionString

```
const char * otGetVersionString(
  void
)
```
Gets the OpenThread version string.

<br />

| Details ||
|---|---|
| **Returns** | A pointer to the OpenThread version. |

### otInstanceErasePersistentInfo

```
otError otInstanceErasePersistentInfo(
  otInstance *aInstance
)
```
Erases all the OpenThread persistent info (network settings) stored on non-volatile memory.

Erase is successful only if the device is in `disabled` state/role.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. Return Values `OT_ERROR_NONE` All persistent info/state was erased successfully. `OT_ERROR_INVALID_STATE` Device is not in `disabled` state/role.

### otInstanceFactoryReset

```
void otInstanceFactoryReset(
  otInstance *aInstance
)
```
Deletes all the settings stored on non-volatile memory, and then triggers a platform reset.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance.

### otInstanceFinalize

```
void otInstanceFinalize(
  otInstance *aInstance
)
```
Disables the OpenThread library.

Call this function when OpenThread is no longer in use.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance.

### otInstanceGetId

```
uint32_t otInstanceGetId(
  otInstance *aInstance
)
```
Gets the instance identifier.

The instance identifier is set to a random value when the instance is constructed, and then its value will not change after initialization.

<br />

| Details ||
|---|---|
| **Returns** | The instance identifier. |

### otInstanceGetIndex

```
uint8_t otInstanceGetIndex(
  otInstance *aInstance
)
```
Gets the index of the OpenThread instance when multiple instance is in use.

This function is available when both `OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE` and `OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE` are enabled.

<br />

Details Parameters `[in] aInstance` The reference of the OpenThread instance to get index. **Returns** The index of the OpenThread instance.

### otInstanceGetInstance

```
otInstance * otInstanceGetInstance(
  uint8_t aIdx
)
```
Gets the pointer to an OpenThread instance with the provided index when multiple instances are in use.

This function is available when both `OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE` and `OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE` are enabled.

<br />

Details Parameters `[in] aIdx` The index of the OpenThread instance. **Returns** A pointer to the corresponding OpenThread instance, or `NULL` if `aIdx` is out of bounds.

### otInstanceGetSingle

```
otInstance * otInstanceGetSingle(
  void
)
```
Gets the pointer to the single OpenThread instance when multiple instances are not in use.

Is available and can only be used when support for multiple OpenThread instances is disabled.

<br />

| Details ||
|---|---|
| **Returns** | A pointer to the single OpenThread instance. |

### otInstanceGetUptime

```
uint64_t otInstanceGetUptime(
  otInstance *aInstance
)
```
Returns the current instance uptime (in msec).

Requires `OPENTHREAD_CONFIG_UPTIME_ENABLE` to be enabled.

The uptime is given as number of milliseconds since OpenThread instance was initialized.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. **Returns** The uptime (number of milliseconds).

### otInstanceGetUptimeAsString

```
void otInstanceGetUptimeAsString(
  otInstance *aInstance,
  char *aBuffer,
  uint16_t aSize
)
```
Returns the current instance uptime as a human-readable string.

Requires `OPENTHREAD_CONFIG_UPTIME_ENABLE` to be enabled.

The string follows the format "::." for hours, minutes, seconds and millisecond (if uptime is shorter than one day) or "
d.::." (if longer than a day).

<br />

If the resulting string does not fit in `aBuffer` (within its `aSize` characters), the string will be truncated but the outputted string is always null-terminated.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[out] aBuffer` A pointer to a char array to output the string. `[in] aSize` The size of `aBuffer` (in bytes). Recommended to use `OT_UPTIME_STRING_SIZE`.

### otInstanceInit

```
otInstance * otInstanceInit(
  void *aInstanceBuffer,
  size_t *aInstanceBufferSize
)
```
Initializes the OpenThread library.

Initializes OpenThread and prepares it for subsequent OpenThread API calls. This function must be called before any other calls to OpenThread.

Is available and can only be used when support for multiple OpenThread instances is enabled.

<br />

Details Parameters `[in] aInstanceBuffer` The buffer for OpenThread to use for allocating the otInstance structure. `[in,out] aInstanceBufferSize` On input, the size of aInstanceBuffer. On output, if not enough space for otInstance, the number of bytes required for otInstance. **Returns** A pointer to the new OpenThread instance. **See also:**   
[otInstanceFinalize](https://openthread.io/reference/group/api-instance#group__api-instance_1gaab0dc090f71b80671ff3dad620314b43)   

### otInstanceInitMultiple

```
otInstance * otInstanceInitMultiple(
  uint8_t aIdx
)
```
Initializes the OpenThread instance.

This function initializes OpenThread and prepares it for subsequent OpenThread API calls. This function must be called before any other calls to OpenThread. This method utilizes static buffer to initialize the OpenThread instance.

This function is available and can only be used when support for multiple OpenThread static instances is enabled (`OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE`)

<br />

Details Parameters `[in] aIdx` The index of the OpenThread instance to initialize. **Returns** A pointer to the new OpenThread instance.

### otInstanceInitSingle

```
otInstance * otInstanceInitSingle(
  void
)
```
Initializes the static single instance of the OpenThread library.

Initializes OpenThread and prepares it for subsequent OpenThread API calls. This function must be called before any other calls to OpenThread.

Is available and can only be used when support for multiple OpenThread instances is disabled.

<br />

| Details ||
|---|---|
| **Returns** | A pointer to the single OpenThread instance. |

### otInstanceReset

```
void otInstanceReset(
  otInstance *aInstance
)
```
Triggers a platform reset.

The reset process ensures that all the OpenThread state/info (stored in volatile memory) is erased. Note that the `otPlatformReset` does not erase any persistent state/info saved in non-volatile memory.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance.

### otInstanceResetRadioStack

```
void otInstanceResetRadioStack(
  otInstance *aInstance
)
```
Resets the internal states of the OpenThread radio stack.

Callbacks and configurations are preserved.

This API is only available under radio builds (`OPENTHREAD_RADIO = 1`).

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance.

### otInstanceResetToBootloader

```
otError otInstanceResetToBootloader(
  otInstance *aInstance
)
```
Triggers a platform reset to bootloader mode, if supported.

Requires `OPENTHREAD_CONFIG_PLATFORM_BOOTLOADER_MODE_ENABLE`.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. Return Values `OT_ERROR_NONE` Reset to bootloader successfully. `OT_ERROR_BUSY` Failed due to another operation is ongoing. `OT_ERROR_NOT_CAPABLE` Not capable of resetting to bootloader.

### otRemoveStateChangeCallback

```
void otRemoveStateChangeCallback(
  otInstance *aInstance,
  otStateChangedCallback aCallback,
  void *aContext
)
```
Removes a callback to indicate when certain configuration or state changes within OpenThread.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[in] aCallback` A pointer to a function that is called with certain configuration or state changes. `[in] aContext` A pointer to application-specific context.

### otSetStateChangedCallback

```
otError otSetStateChangedCallback(
  otInstance *aInstance,
  otStateChangedCallback aCallback,
  void *aContext
)
```
Registers a callback to indicate when certain configuration or state changes within OpenThread.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[in] aCallback` A pointer to a function that is called with certain configuration or state changes. `[in] aContext` A pointer to application-specific context. Return Values `OT_ERROR_NONE` Added the callback to the list of callbacks. `OT_ERROR_ALREADY` The callback was already registered. `OT_ERROR_NO_BUFS` Could not add the callback due to resource constraints.

## Macros

### OT_CHANGED_ACTIVE_DATASET

```
 OT_CHANGED_ACTIVE_DATASET (1U << 28)
```
Active Operational Dataset changed.

### OT_CHANGED_CHANNEL_MANAGER_NEW_CHANNEL

```
 OT_CHANGED_CHANNEL_MANAGER_NEW_CHANNEL (1U << 21)
```
Channel Manager new pending Thread channel changed.

### OT_CHANGED_COMMISSIONER_STATE

```
 OT_CHANGED_COMMISSIONER_STATE (1U << 23)
```
Commissioner state changed.

### OT_CHANGED_IP6_ADDRESS_ADDED

```
 OT_CHANGED_IP6_ADDRESS_ADDED (1U << 0)
```
IPv6 address was added.

### OT_CHANGED_IP6_ADDRESS_REMOVED

```
 OT_CHANGED_IP6_ADDRESS_REMOVED (1U << 1)
```
IPv6 address was removed.

### OT_CHANGED_IP6_MULTICAST_SUBSCRIBED

```
 OT_CHANGED_IP6_MULTICAST_SUBSCRIBED (1U << 12)
```
Subscribed to a IPv6 multicast address.

### OT_CHANGED_IP6_MULTICAST_UNSUBSCRIBED

```
 OT_CHANGED_IP6_MULTICAST_UNSUBSCRIBED (1U << 13)
```
Unsubscribed from a IPv6 multicast address.

### OT_CHANGED_JOINER_STATE

```
 OT_CHANGED_JOINER_STATE (1U << 27)
```
Joiner state changed.

### OT_CHANGED_NAT64_TRANSLATOR_STATE

```
 OT_CHANGED_NAT64_TRANSLATOR_STATE (1U << 30)
```
The state of NAT64 translator changed.

### OT_CHANGED_NETWORK_KEY

```
 OT_CHANGED_NETWORK_KEY (1U << 18)
```
Network key changed.

### OT_CHANGED_PARENT_LINK_QUALITY

```
 OT_CHANGED_PARENT_LINK_QUALITY (1U << 31)
```
Parent link quality changed.

### OT_CHANGED_PENDING_DATASET

```
 OT_CHANGED_PENDING_DATASET (1U << 29)
```
Pending Operational Dataset changed.

### OT_CHANGED_PSKC

```
 OT_CHANGED_PSKC (1U << 19)
```
PSKc changed.

### OT_CHANGED_SECURITY_POLICY

```
 OT_CHANGED_SECURITY_POLICY (1U << 20)
```
Security Policy changed.

### OT_CHANGED_SUPPORTED_CHANNEL_MASK

```
 OT_CHANGED_SUPPORTED_CHANNEL_MASK (1U << 22)
```
Supported channel mask changed.

### OT_CHANGED_THREAD_BACKBONE_ROUTER_LOCAL

```
 OT_CHANGED_THREAD_BACKBONE_ROUTER_LOCAL (1U << 26)
```
Local Backbone Router configuration changed.

### OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE

```
 OT_CHANGED_THREAD_BACKBONE_ROUTER_STATE (1U << 25)
```
Backbone Router state changed.

### OT_CHANGED_THREAD_CHANNEL

```
 OT_CHANGED_THREAD_CHANNEL (1U << 14)
```
Thread network channel changed.

### OT_CHANGED_THREAD_CHILD_ADDED

```
 OT_CHANGED_THREAD_CHILD_ADDED (1U << 10)
```
Child was added.

### OT_CHANGED_THREAD_CHILD_REMOVED

```
 OT_CHANGED_THREAD_CHILD_REMOVED (1U << 11)
```
Child was removed.

### OT_CHANGED_THREAD_EXT_PANID

```
 OT_CHANGED_THREAD_EXT_PANID (1U << 17)
```
Thread network extended PAN ID changed.

### OT_CHANGED_THREAD_KEY_SEQUENCE_COUNTER

```
 OT_CHANGED_THREAD_KEY_SEQUENCE_COUNTER (1U << 8)
```
Thread Key Sequence changed.

### OT_CHANGED_THREAD_LL_ADDR

```
 OT_CHANGED_THREAD_LL_ADDR (1U << 3)
```
The link-local address changed.

### OT_CHANGED_THREAD_ML_ADDR

```
 OT_CHANGED_THREAD_ML_ADDR (1U << 4)
```
The mesh-local address changed.

### OT_CHANGED_THREAD_NETDATA

```
 OT_CHANGED_THREAD_NETDATA (1U << 9)
```
Thread Network Data changed.

### OT_CHANGED_THREAD_NETIF_STATE

```
 OT_CHANGED_THREAD_NETIF_STATE (1U << 24)
```
Thread network interface state changed.

### OT_CHANGED_THREAD_NETWORK_NAME

```
 OT_CHANGED_THREAD_NETWORK_NAME (1U << 16)
```
Thread network name changed.

### OT_CHANGED_THREAD_PANID

```
 OT_CHANGED_THREAD_PANID (1U << 15)
```
Thread network PAN Id changed.

### OT_CHANGED_THREAD_PARTITION_ID

```
 OT_CHANGED_THREAD_PARTITION_ID (1U << 7)
```
Partition ID changed.

### OT_CHANGED_THREAD_RLOC_ADDED

```
 OT_CHANGED_THREAD_RLOC_ADDED (1U << 5)
```
RLOC was added.

### OT_CHANGED_THREAD_RLOC_REMOVED

```
 OT_CHANGED_THREAD_RLOC_REMOVED (1U << 6)
```
RLOC was removed.

### OT_CHANGED_THREAD_ROLE

```
 OT_CHANGED_THREAD_ROLE (1U << 2)
```
Role (disabled, detached, child, router, leader) changed.

### OT_UPTIME_STRING_SIZE

```
 OT_UPTIME_STRING_SIZE 24
```
Recommended size for string representation of uptime.

## 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).