Datasheet
void restartOnDisconnect(bool enable);
Setting this function to '1' will cause the scanning process to start again as soon as you disconnect from a peripheral
device. The default behaviour is to automatically restart scanning on disconnect.
Examples
For an example that uses almost all of the BLEScanner and advertising API in Central mode, see
central_scan_advanced.ino (https://adafru.it/y5a) in the Central examples folder.
https://adafru.it/y5a
https://adafru.it/y5a
This example is only available in BSP 0.7.0 and higher!
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 103 of 175