- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I works better to turn scanning off when disconnected.