API result of CyBle_GapcConnectDevice() | Cypress Semiconductor
API result of CyBle_GapcConnectDevice()
I am developing application on PROC4 BLE as a central device. My side is client side.After passing address of peer device to which my device wants to connect to the Gapc_connectdevice function it gives api result :CYBLE_ERROR_INVALID_STATE which is explained as : On calling this API not in Disconnected state.
I have called Cyble_gapcstopscan() and CyBle_GapDisconnect(cyBle_connHandle.bdHandle) before calling Gapc_connectdevice () function.
But it still shows "not in Disconnected state" result and hence CYBLE_EVT_GAP_DEVICE_CONNECTED is also not generating.What is exact meaning of this api result?
What are the possible faults?