ESP32S3 BLE.end() crash
Posted: Wed Jun 12, 2024 5:07 pm
I'm using the XIAO_ESP32S3 board with ArduinoIDE with installed ArduinoBLE. It currently uses ESP-IDF v5.1.
I created a test sketch for BLE which crashes after disconnecting from the XIAO board which calls "BLE.end()". I attached the sketch and log in After checking the “Backtrace: 0x403826fa:0x3fcebe00…” from the log I found that the crash originates from the "poll()" call.
So I crated another sketch trying to fix the problem but changing the variable “iBLEState = 2;” in function “bleOnDisconnected” has no effect, see Does somebody knows the reason?
I created a test sketch for BLE which crashes after disconnecting from the XIAO board which calls "BLE.end()". I attached the sketch and log in After checking the “Backtrace: 0x403826fa:0x3fcebe00…” from the log I found that the crash originates from the "poll()" call.
So I crated another sketch trying to fix the problem but changing the variable “iBLEState = 2;” in function “bleOnDisconnected” has no effect, see Does somebody knows the reason?