Function openthread_sys::otLinkSetPanId
source ยท pub unsafe extern "C" fn otLinkSetPanId(
aInstance: *mut otInstance,
aPanId: otPanId,
) -> otError
Expand description
Set the IEEE 802.15.4 PAN ID.
Succeeds only when Thread protocols are disabled. A successful call to this function also invalidates the Active and Pending Operational Datasets in non-volatile memory.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPanId The IEEE 802.15.4 PAN ID.
@retval OT_ERROR_NONE Successfully set the PAN ID. @retval OT_ERROR_INVALID_ARGS If aPanId is not in the range [0, 65534]. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.
@sa otLinkGetPanId