Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

BLE Scanner continues after calling stop
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BLE Scanner continues after calling stop

by tantram on Wed Aug 28, 2019 2:44 am

In my Scanner callback, I am calling the Scanner.stop() function, but it does not stop and I keep getting an unlimited number of scanner callback invocations.

void scan_callback(ble_gap_evt_adv_report_t* report)
{
Bluefruit.Scanner.stop();
Serial.print("Found a thing");
Bluefruit.Central.connect(report);
}

tantram
 
Posts: 4
Joined: Wed Nov 19, 2014 4:18 pm

Re: BLE Scanner continues after calling stop

by hathach on Wed Mar 04, 2020 7:18 am

could tell which board you are using, your bsp verion, best is to enable debug level and post the Serial output here. Also please provide your simplest sketch the could reproduce the issue as well.

hathach
 
Posts: 1126
Joined: Tue Apr 23, 2013 1:02 am

Please be positive and constructive with your questions and comments.


cron