Function esp_idf_sys::esp_bt_controller_deinit
source ยท pub unsafe extern "C" fn esp_bt_controller_deinit() -> esp_err_t
Expand description
@brief De-initialize Bluetooth Controller to free resources and delete tasks
@note 1. You should stop advertising and scanning, and disconnect all existing connections before de-initializing Bluetooth Controller. 2. This function should be called only once, after any other Bluetooth functions.
@return - ESP_OK: Success - ESP_ERR_INVALID_ARG: Invalid argument - ESP_ERR_INVALID_STATE: Invalid Bluetooth Controller state - ESP_ERR_NO_MEM: Out of memory