Skip to main content
JHald.1
Associate
January 21, 2020
Question

How to correctly stop scanning for beacons (entering low current sleep mode again)?

  • January 21, 2020
  • 0 replies
  • 513 views

I'm using the BlueNRG-2 with FreeRTOS in Atollic TrueSTUDIO.

I succeeded in scanning for beacons using:

ret = aci_gap_start_observation_proc(160, 160, 0x00, 0x00, 0x00, 0x00);

But after some time I would like to stop scanning and e.g. enter sleep mode again (< 0.1mA).

But there seems to be no way to stop the observation procedure. I always measure > 20mA in this case.

I tried calling:

ret = aci_gap_start_observation_proc(0, 0, 0x00, 0x00, 0x00, 0x00);

But this doesn't help.

Any suggestions?

    This topic has been closed for replies.