When connected as central there I'm having issue turning scanning on and off

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JaOs_4314736
Level 2
Level 2
First like received

Hi,

In PSoC 4 BLE project we want to connect as a central device, turn on scanning and monitor for advertising packets from an app. There is a problem though when turning scanning on and off while connected. I tracked this down in the BLE stack and it appears there are start and stop flags that will not get cleared when connected. In the BLE event handler if the state is connected the start and stop flags in cyBle_eventHandlerFlag will not get cleared. This appears to prevent scanning starts until the flags are cleared. I was clearing them manually but the BLE stack started crashing.

Can some please tell me how I can start and stop scanning while connected as a central device.

Thank you, James Osborne

0 Likes
1 Solution
JaOs_4314736
Level 2
Level 2
First like received

I works better to turn scanning off when disconnected.

View solution in original post

0 Likes
1 Reply
JaOs_4314736
Level 2
Level 2
First like received

I works better to turn scanning off when disconnected.

0 Likes