Function otLinkSetWakeUpListenEnabled

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

Enables or disables listening for wake-up frames.

Requires OPENTHREAD_CONFIG_WAKEUP_END_DEVICE_ENABLE.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnable true to enable listening for wake-up frames, or false otherwise.

@retval OT_ERROR_NONE Successfully enabled / disabled the listening for wake-up frames. @retval OT_ERROR_INVALID_ARGS The listen duration is greater than the listen interval. @retval OT_ERROR_INVALID_STATE Could not enable listening for wake-up frames due to bad configuration.