Function esp_idf_sys::esp_bt_sleep_enable
source ยท pub unsafe extern "C" fn esp_bt_sleep_enable() -> esp_err_t
Expand description
@brief Enable Bluetooth modem sleep
There are currently two options for Bluetooth modem sleep: ORIG mode and EVED mode. The latter is intended for BLE only. The modem sleep mode could be configured in menuconfig.
In ORIG mode, if there is no event to process, the Bluetooth Controller will periodically switch off some components and pause operation, then wake up according to the scheduled interval and resume work.
It can also wakeup earlier upon external request using function esp_bt_controller_wakeup_request()
.
@note This function shall not be invoked before esp_bt_controller_enable()
.
@return - ESP_OK: Success - ESP_ERR_INVALID_STATE: Invalid Bluetooth Controller state - ESP_ERR_NOT_SUPPORTED: Operation or feature not supported