Start and Stop BLE Scanning | Cypress Semiconductor
Start and Stop BLE Scanning
As part of my application I need to start and stop BLE Scanning.
To start scanning I use the function CyBle_GapcStartScan(CYBLE_SCANNING_FAST).
To stop scanning I use the function CyBle_GapcStopScan().
The start scanning always works and generates a CYBLE_EVT_GAPC_SCAN_START_STOP event.
The stop scanning only works intermittently.
When it works it generates a CYBLE_EVT_GAPC_SCAN_START_STOP event.
When it doesn't work, no event is generated and the BLE remains in scanning mode.
Are there other conditions I need to set to stop the BLE from scanning.
The device is a CYBL10563-56LQXI