Go to file
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
.github Copy platformio-build.py in the release package 2021-01-14 11:17:21 +02:00
cores/esp32 Remove an unused variable 'channel' (#4725) 2021-01-21 14:31:25 +02:00
docs Add initial support for arm64 toolchain. (#4117) 2020-11-02 20:39:31 +02:00
libraries Improve cleanup in BLEClient (#4742) 2021-02-16 11:21:45 +02:00
package Add arm64 support for mkspiffs 2021-01-21 14:42:31 +02:00
tools Idf release/v3.3 d8082b7f3 2021-02-16 01:37:37 +02:00
variants [1.0.5] Update Heltec ESP32 series boards definition (#4577) 2020-12-02 11:50:12 +02:00
.gitignore Update .gitignore 2020-12-01 22:20:06 +02:00
.gitmodules Set ESP-IDF to 3.2 (#2662) 2019-04-12 15:43:53 +02:00
.travis.yml Use Github Actions for release (#3309) 2019-10-01 10:44:04 +03:00
boards.txt [1.0.5] Update Heltec ESP32 series boards definition (#4577) 2020-12-02 11:50:12 +02:00
CMakeLists.txt Separate Provisioning library from WiFi library (#4547) 2020-11-19 00:12:16 +02:00
component.mk Fix compilation errors when used as IDF component 2019-01-26 21:37:03 +01:00
Kconfig.projbuild Add loop task stack size config to Kconfig 2020-12-02 11:56:45 +02:00
LICENSE.md Add LGPL 2.1 License 2019-04-16 03:08:50 +02:00
Makefile.projbuild Remove duplicate ota_data flashing under IDF 2018-08-16 13:34:47 +02:00
package.json Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows (#153) 2017-01-28 14:19:56 +02:00
platform.txt Idf release/v3.3 d8082b7f3 2021-02-16 01:37:37 +02:00
programmers.txt initial import 2016-10-06 07:09:44 -06:00
README.md Update README.md 2020-11-06 17:21:12 +02:00

Arduino core for the ESP32

Build Status

Need help or have a question? Join the chat at https://gitter.im/espressif/arduino-esp32

Contents

Development Status

Latest Stable Release Release Version Release Date Downloads

Latest Development Release Release Version Release Date Downloads

Installation Instructions

Decoding exceptions

You can use EspExceptionDecoder to get meaningful call trace.

Issue/Bug report template

Before reporting an issue, make sure you've searched for similar one that was already created. Also make sure to go through all the issues labelled as for reference.

Finally, if you are sure no one else had the issue, follow the ISSUE_TEMPLATE while reporting any issue.

ESP32Dev Board PINMAP

Pin Functions

Tip

Sometimes to program ESP32 via serial you must keep GPIO0 LOW during the programming process