Skip to content

Receive "scan_evt timeout" on serial monitor #5860

Closed
@sami1369

Description

@sami1369

Hi guys
I use an ESP32 as scanner and 2 ESP32 Advertised to Scanner
َAfter A few hours I receive a message on serial monitor in scanner device and scanner doesn't work while other peripherals work perfect.
message is "scan_evt timeout"
my code in scanner:

Sketch:

void Task1code(void *pvParameters)
{
  for (;;)
  {
    BLEScanResults foundDevices = pBLEScan->start(scanTime, true);
    allowScan = true;
    Serial.println("Scan done!");
    pBLEScan->clearResults(); // delete results fromBLEScan buffer to release memory

    vTaskDelay(5);
  }
}

scan time is 3 second.

can you help me?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions