openthread_sys

Function otThreadSetExtendedPanId

Source
pub unsafe extern "C" fn otThreadSetExtendedPanId(
    aInstance: *mut otInstance,
    aExtendedPanId: *const otExtendedPanId,
) -> otError
Expand description

Sets the IEEE 802.15.4 Extended PAN ID.

@note Can only be called while Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aExtendedPanId A pointer to the IEEE 802.15.4 Extended PAN ID.

@retval OT_ERROR_NONE Successfully set the Extended PAN ID. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.

@sa otThreadGetExtendedPanId