]> granicus.if.org Git - esp-idf/commit
Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as disco...
authorHrishikesh Dhayagude <hrishi@espressif.com>
Mon, 9 Apr 2018 10:30:48 +0000 (16:00 +0530)
committerHrishikesh Dhayagude <hrishi@espressif.com>
Wed, 13 Mar 2019 05:54:00 +0000 (11:24 +0530)
commitd9ce0bb705b155c2f51aabc929026888a3d7a7e8
tree5a70f2b45bea8d026f597ed470b0c4bf91c60843
parentfa5bc5d58bf8ddf3eb737ebe24c2875e72106f5f
Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes

The current API is insufficient to allow the users to set different combinations of connection and discoverable mode

Users should be able to choose the device modes independently:
1. Connectable-
  i. Non-connectable mode
  ii. Connectable mode

2. Discoverable-
  i. Non-discoverable mode
  ii. Limited discoverable mode
  iii. General discoverable mode
13 files changed:
components/bt/bluedroid/api/esp_gap_bt_api.c
components/bt/bluedroid/api/include/api/esp_gap_bt_api.h
components/bt/bluedroid/btc/profile/std/gap/btc_gap_bt.c
components/bt/bluedroid/btc/profile/std/include/btc_gap_bt.h
examples/bluetooth/a2dp_gatts_coex/main/main.c
examples/bluetooth/a2dp_sink/main/bt_app_av.c
examples/bluetooth/a2dp_sink/main/main.c
examples/bluetooth/a2dp_source/main/main.c
examples/bluetooth/bt_discovery/main/bt_discovery.c
examples/bluetooth/bt_spp_acceptor/main/example_spp_acceptor_demo.c
examples/bluetooth/bt_spp_initiator/main/example_spp_initiator_demo.c
examples/bluetooth/bt_spp_vfs_acceptor/main/example_spp_vfs_acceptor_demo.c
examples/bluetooth/bt_spp_vfs_initiator/main/example_spp_vfs_initiator_demo.c