Merge branch 'feature/btdm_add_connect_event_and_disconnect_event_for_gattc' into 'master'

component/bt: Add disconnect & connect func and event

See merge request !806
This commit is contained in:
Jiang Jiang Jian
2017-06-07 13:45:43 +08:00
16 changed files with 304 additions and 41 deletions
@@ -797,6 +797,17 @@ esp_err_t esp_ble_passkey_reply(esp_bd_addr_t bd_addr, bool accept, uint32_t pas
*/
esp_err_t esp_ble_confirm_reply(esp_bd_addr_t bd_addr, bool accept);
/**
* @brief This function is to disconnect the physical connection of the peer device
*
* @param[in] remote_device : BD address of the peer device
*
* @return - ESP_OK : success
* - other : failed
*
*/
esp_err_t esp_ble_gap_disconnect(esp_bd_addr_t remote_device);
#ifdef __cplusplus
}
#endif