![]() esp_bt_gap_cb_t will be called with ESP_BT_GAP_DISC_STATE_CHANGED_EVT when Inquiry is started or Name Discovery is completed. When Inquiry is halted and cached results do not contain device name, then Name Discovery will connect to the peer target to get the device name. This function should be called after esp_bluedroid_enable() completes successfully. This function starts Inquiry and Name Discovery. ParametersĬ_mode – : one of the enums of esp_bt_connection_mode_tĭ_mode – : one of the enums of esp_bt_discovery_mode_tĮSP_ERR_INVALID_STATE: if bluetooth stack is not yet enabledĮsp_err_t esp_bt_gap_start_discovery ( esp_bt_inq_mode_t mode, uint8_t inq_len, uint8_t num_rsps ) Set discoverability and connectability mode for legacy bluetooth. This function should be called after esp_bluedroid_enable() completes successfully ReturnsĮsp_err_t esp_bt_gap_set_scan_mode ( esp_bt_connection_mode_t c_mode, esp_bt_discovery_mode_t d_mode ) ![]() Minor service bits static inline uint32_t esp_bt_gap_get_cod_format_type ( uint32_t cod ) įormat type static inline bool esp_bt_gap_is_valid_cod ( uint32_t cod ) Įsp_err_t esp_bt_gap_register_callback ( esp_bt_gap_cb_t callback ) ![]() Get minor service field of COD Parameters Major device bits static inline uint32_t esp_bt_gap_get_cod_minor_dev ( uint32_t cod ) Major service bits static inline uint32_t esp_bt_gap_get_cod_major_dev ( uint32_t cod ) Get major service field of COD Parameters CLASSIC BLUETOOTH GAP API API Reference Header File Ĭomponents/bt/host/bluedroid/api/include/api/esp_gap_bt_api.hįunctions static inline uint32_t esp_bt_gap_get_cod_srvc ( uint32_t cod )
0 Comments
Leave a Reply. |