Ryan Powell

Results 894 comments of Ryan Powell

What MCU is this on? Can you share a code snippet to reproduce?

A quick look suggests that the scan task is being suspended in various situations but never resumed so the scan is never restarted.

Closing this as it does not appear to be an issue with the library.

Thanks, I can't say i've noticed but I will test and get back

I have looked into this and the cause is due to active scanning and how it is handled. When a device is advertising with a scan response available the device...

I would suggest using a timer that triggers say every 15 or 20 mins and in the callback stop the scan with `pBLEScan->stop();`. >In the [documentation](https://h2zero.github.io/esp-nimble-cpp/class_nim_b_l_e_scan.html#a21b1e27816717b77533755f31dfaa820), the final pBLEScan->start() object...

I'm thinking about implementing a scan response timer that will invoke the advertised device callback and then remove it from the vector when max devices is 0 if the scan...

@scripter-co @nravanelli I have created a branch that should resolve this here: https://github.com/h2zero/NimBLE-Arduino/tree/sr-timer Please try it out and let me know, thanks!

> "pBLEScan->setActiveScan(false); //active scan uses more power, but get results faster" Notice the comment "get results faster" This is misleading and unfortunately still in the example code from the original...

How long is the advertisement window? If it only advertising for a few Ms every 100ms then that could explain it.