arduino-libraries / ArduinoBLE

ArduinoBLE library for Arduino
GNU Lesser General Public License v2.1
315 stars 207 forks source link

NANO 33 IOT, BLE.Scan() stops randomly and Nano BLE hangs after about 1 minute, stop/start doesn't fix it #187

Open sdetweil opened 3 years ago

sdetweil commented 3 years ago

i have a device programmed to scan for UUID which works.. and then suddenly someplace in 5 - 10 minutes all scanning stops.. with no recovery

I tried putting BLE.scan() in loop.. but it doesn't do anything (if not used in setup)

which takes me to a question someplace I want to disable scanning to save power.. how do I turn it back on if I can't put scan in loop?

my IOT is running off a battery, trying to conserve as much power as possible.

sdetweil commented 3 years ago

adding a stopScan()/scan() every minute in loop solves the silence

sdetweil commented 3 years ago

this doesn't help the NANO BLE which hangs with/without the start/stop

loop is still running

sdetweil commented 3 years ago

this might be related to #192

murali-dotworld commented 3 years ago

Hello same problem arrise here, can you get me the solution for this problem.