8000 Changes for esp_ble_gattc_open in ESP-IDF · m4k3r-org/esp32-snippets@9c796bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c796bb

Browse files
committed
Changes for esp_ble_gattc_open in ESP-IDF
1 parent 630f1b5 commit 9c796bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp_utils/BLEClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ bool BLEClient::connect(BLEAddress address) {
110110
errRc = ::esp_ble_gattc_open(
111111
getGattcIf(),
112112
*getPeerAddress().getNative(), // address
113+
BLE_ADDR_TYPE_PUBLIC, // Note: This was added on 2018-04-03 when the latest ESP-IDF was detected to have changed the signature.
113114
1 // direct connection
114115
);
115116
if (errRc != ESP_OK) {

0 commit comments

Comments
 (0)
0