arduino-esp32/libraries/BLE/src
buxtronix 4f48caca2c
Set scan_duplicate in BLE scan params (#4126)
This value is uninitialised and as such can be a random (and invalid) value. It's needs to be set per the espressif documentation here:

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/esp_gap_ble.html#_CPPv4N21esp_ble_scan_params_t14scan_duplicateE

This PR sets it to DUPLICATE_DISABLE. Chosen as this is needed to ensure all scan data is populated in the scan callback, per this comment in the IDF:

https://github.com/espressif/esp-idf/blob/master/components/bt/host/bluedroid/stack/btm/btm_ble_gap.c#L3591

"//if scan duplicate is enabled, the adv packet without scan response is allowed to report to higher layer"

We **don't** want it to report to the higher layer (ie BLEScan.cpp) **unless** it has the active scan response.

Seems to resolve #3770 #3677 and possibly others.
2020-10-01 13:45:45 +03:00
..
BLE2902.cpp Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLE2902.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLE2904.cpp Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLE2904.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEAddress.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEAddress.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEAdvertisedDevice.cpp BLE: reception support multiple service data (#3502) 2020-01-20 15:30:29 +02:00
BLEAdvertisedDevice.h BLE: reception support multiple service data (#3502) 2020-01-20 15:30:29 +02:00
BLEAdvertising.cpp Defined BLE setAdvertisementType (#3535) 2020-01-20 15:42:38 +02:00
BLEAdvertising.h Defined BLE setAdvertisementType (#3535) 2020-01-20 15:42:38 +02:00
BLEBeacon.cpp Refactored use of LOG_X(LOG_TAG, ...) to log_x(...) (#2672) 2019-04-15 17:26:35 +02:00
BLEBeacon.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLECharacteristic.cpp Fix #4046 Details below: (#4086) 2020-09-30 15:27:35 +03:00
BLECharacteristic.h Fix #4046 Details below: (#4086) 2020-09-30 15:27:35 +03:00
BLECharacteristicMap.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEClient.cpp Have BLECLient gattc event handlers verify conn_id (#4064) 2020-09-30 15:21:59 +03:00
BLEClient.h Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEDescriptor.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEDescriptor.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEDescriptorMap.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEDevice.cpp Add BLEDevice::stopAdvertising() helper method to compliment startAdvertising(). (#3624) 2020-01-20 16:31:12 +02:00
BLEDevice.h Add BLEDevice::stopAdvertising() helper method to compliment startAdvertising(). (#3624) 2020-01-20 16:31:12 +02:00
BLEEddystoneTLM.cpp Fix issue #3833, data parsing of Eddystone TLM data frame (#3836) 2020-09-30 14:55:58 +03:00
BLEEddystoneTLM.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEEddystoneURL.cpp Refactored use of LOG_X(LOG_TAG, ...) to log_x(...) (#2672) 2019-04-15 17:26:35 +02:00
BLEEddystoneURL.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEExceptions.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEExceptions.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEHIDDevice.cpp Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEHIDDevice.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLERemoteCharacteristic.cpp Fix handling of registerForNotify in BLERemoteCharacteristic.cpp (#4063) 2020-09-30 15:20:28 +03:00
BLERemoteCharacteristic.h Updated BLERemoteCharacteristic to exposre esp_gatt_auth_req_t parame… (#3531) 2020-01-20 15:40:13 +02:00
BLERemoteDescriptor.cpp Updated BLERemoteCharacteristic to exposre esp_gatt_auth_req_t parame… (#3531) 2020-01-20 15:40:13 +02:00
BLERemoteDescriptor.h Updated BLERemoteCharacteristic to exposre esp_gatt_auth_req_t parame… (#3531) 2020-01-20 15:40:13 +02:00
BLERemoteService.cpp removed double delete of characteristics (#3521) 2020-09-30 14:25:31 +03:00
BLERemoteService.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEScan.cpp Set scan_duplicate in BLE scan params (#4126) 2020-10-01 13:45:45 +03:00
BLEScan.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLESecurity.cpp Add static pin support (#4078) 2020-09-30 15:25:42 +03:00
BLESecurity.h Add static pin support (#4078) 2020-09-30 15:25:42 +03:00
BLEServer.cpp Fix for issue 3974 m_connectedCount incorrectly decremented when no connection exists 2020-06-01 01:35:01 +03:00
BLEServer.h Fix for issue 3974 m_connectedCount incorrectly decremented when no connection exists 2020-06-01 01:35:01 +03:00
BLEService.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEService.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEServiceMap.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEUtils.cpp Reduce flash usage up to 214k in one click (#2929) 2019-07-09 19:31:17 +03:00
BLEUtils.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEUUID.cpp Fix BLEUUID toString (#3289) 2019-10-01 11:54:21 +03:00
BLEUUID.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
BLEValue.cpp Refactored use of LOG_X(LOG_TAG, ...) to log_x(...) (#2672) 2019-04-15 17:26:35 +02:00
BLEValue.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
FreeRTOS.cpp Don't change owner if take() doesnt succeed (#3987) 2020-09-30 15:15:47 +03:00
FreeRTOS.h Ble notification/indication status and timeout (#2998) 2019-08-20 17:15:30 +03:00
GeneralUtils.cpp allow the examples to build in a more strict env (#3299) 2019-09-29 23:47:02 +03:00
GeneralUtils.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
HIDKeyboardTypes.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
HIDTypes.h Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00