pub unsafe extern "C" fn otLinkSetChannel(
    aInstance: *mut otInstance,
    aChannel: u8
) -> otError
Expand description

Set the IEEE 802.15.4 channel

Succeeds only when 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] aChannel The IEEE 802.15.4 channel.

@retval OT_ERROR_NONE Successfully set the channel. @retval OT_ERROR_INVALID_ARGS If @p aChannel is not in the range [11, 26] or is not in the supported channel mask. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.

@sa otLinkGetChannel