1 Reply Latest reply on Jan 13, 2017 9:34 AM by e.pratt_1639216

    Calling CyBle_Stop() within the BLE stack handler


      Is it okay to call CyBle_Stop() within the BLE stack handler?


      Specifically, I would like to call CyBle_Stop() under the case CYBLE_EVT_GAP_DEVICE_DISCONNECTED, i.e. when the peripheral disconnects/gets disconnected from the central device. I am asking this because it does not feel right to stop the stack handler callback within it. I do not know what exactly happens when CyBle_Stop() is called (and I am not a expert programmer) but may be it could cause problems to the stack?


      Thank you.