警告
This document is not updated for ESP32C6 yet, so some of the content may not be correct.
This warning was automatically inserted due to the source file being in the add_warnings_pages list.
BT MAIN API
API Reference
Header File
Functions
-
esp_bluedroid_status_t esp_bluedroid_get_status(void)
Get bluetooth stack status.
- 返回
Bluetooth stack status
-
esp_err_t esp_bluedroid_enable(void)
Enable bluetooth, must after esp_bluedroid_init().
- 返回
ESP_OK : Succeed
Other : Failed
-
esp_err_t esp_bluedroid_disable(void)
Disable bluetooth, must prior to esp_bluedroid_deinit().
- 返回
ESP_OK : Succeed
Other : Failed
Enumerations
-
enum esp_bluedroid_status_t
Bluetooth stack status type, to indicate whether the bluetooth stack is ready.
Values:
-
enumerator ESP_BLUEDROID_STATUS_UNINITIALIZED
Bluetooth not initialized
-
enumerator ESP_BLUEDROID_STATUS_INITIALIZED
Bluetooth initialized but not enabled
-
enumerator ESP_BLUEDROID_STATUS_ENABLED
Bluetooth initialized and enabled
-
enumerator ESP_BLUEDROID_STATUS_UNINITIALIZED