Crash Memory with Scan BLE if code in an function ( over Version 1.0.6 ) #8751
Labels
Area: BLE
Issues related to BLE
Area: BT&Wifi
BT & Wifi related issues
Status: In Progress ⚠️
Issue is in progress
Type: Bug 🐛
All bugs
Milestone
Board
ESP32 DEV MODULE
Device Description
AZ-Delivery module
ESP VROOM 32 ( standalone )
Hardware Configuration
nothing
Version
v2.0.11
IDE Name
Arduino IDE
Operating System
Mac OS 13.5.2
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
Hello
I use BLE with BLEScan and after my Arduino ( ESP32 ) update, I have a crash memory when the scan BLE function finish ( when returning main loop )
I the Scan code is not in an function and placed in the main loop, no problem.
I return with 1.0.6 version and no problem
Sketch
Debug Message
Other Steps to Reproduce
just call the function ScanBLE since loop
if the code is directly in the main loop ( no function call ) no crash and no problem
if I return with Arduino 1.0.6 it's ok
int ScanBLE()
{
BLEScanResults foundDevices = pBLEScan->start(scanTime, false);
Serial.print("Devices found: ");
Serial.println(foundDevices.getCount());
Serial.println("Scan done!");
pBLEScan->clearResults();
}
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: