1 Reply Latest reply on Aug 5, 2020 9:41 AM by JaOs_4314736

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

    JaOs_4314736

      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