arduino-esp32/libraries/BLE
Emanuel Posescu 9be784f69b
Improve cleanup in BLEClient (#4742)
- Remove client from the list of devices in case registration fails
- Filter other events not related to registration during registration phase
- Cleanup if connect fails
- Reset if after disconnect
- Disconnect callback *after* cleanup is done so object can be deleted

This fixes some of the issues I had like:
- `BLEClient::connect` hangs up and never recovered because registration failed
- `BLEClient` could not be deleted after disconnect or deletion creating ghost events https://github.com/espressif/arduino-esp32/issues/4047
- `BLEClient` could not be properly reused after a connection was attempted (successful or not) 

* Cleanup in case of registration and connect failure.
Cleanup before calling disconnect callback for safe delete.
Reject other events during registration.
Adresses #4047, #4055

* Clear if after unregister #4047
2021-02-16 11:21:45 +02:00
..
examples Fix issue #3833, data parsing of Eddystone TLM data frame (#3836) 2020-09-30 14:55:58 +03:00
src Improve cleanup in BLEClient (#4742) 2021-02-16 11:21:45 +02: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