Function esp_idf_svc::hal::sys::esp_bt_sleep_disable
source ยท pub unsafe extern "C" fn esp_bt_sleep_disable() -> i32
Expand description
@brief disable bluetooth modem sleep
Note that this function shall not be invoked before esp_bt_controller_enable()
If esp_bt_sleep_disable() is called, bluetooth controller will not be allowed to enter modem sleep;
If ORIG modem sleep mode is in use, if this function is called, bluetooth controller may not immediately wake up if it is dormant then. In this case, esp_bt_controller_wakeup_request() can be used to shorten the time for wakeup.
@return - ESP_OK : success - other : failed