Function otLinkSetRxOnWhenIdle

Source
pub unsafe extern "C" fn otLinkSetRxOnWhenIdle(
    aInstance: *mut otInstance,
    aRxOnWhenIdle: bool,
) -> otError
Expand description

Sets the rx-on-when-idle state.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aRxOnWhenIdle TRUE to keep radio in Receive state, FALSE to put to Sleep state during idle periods.

@retval OT_ERROR_NONE If successful. @retval OT_ERROR_INVALID_STATE If the raw link-layer isn’t enabled.