CLASSIC BLUETOOTH GAP API¶
Overview¶
Application Example¶
API Reference¶
Header File¶
Functions¶
-
esp_err_t
esp_bt_gap_set_scan_mode
(esp_bt_scan_mode_t mode)¶ Set discoverability and connectability mode for legacy bluetooth. This function should be called after esp_bluedroid_enable() completes successfully.
- Return
- ESP_OK : Succeed
- ESP_ERR_INVALID_ARG: if argument invalid
- ESP_INVALID_STATE: if bluetooth stack is not yet enabled
- ESP_FAIL: others
- Parameters
mode
: : one of the enums of bt_scan_mode_t