arduino-esp32/libraries/BLE
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
..
examples Fix issue #3833, data parsing of Eddystone TLM data frame (#3836) 2020-09-30 14:55:58 +03:00
src Set scan_duplicate in BLE scan params (#4126) 2020-10-01 13:45:45 +03:00
library.properties Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
README.md Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00

ESP32 BLE for Arduino

The Arduino IDE provides an excellent library package manager where versions of libraries can be downloaded and installed. This Github project provides the repository for the ESP32 BLE support for Arduino.

The actual source of the project which is being maintained can be found here:

https://github.com/nkolban/esp32-snippets

Issues and questions should be raised here:

https://github.com/nkolban/esp32-snippets/issues

Documentation for using the library can be found here:

https://github.com/nkolban/esp32-snippets/tree/master/Documentation