3 Replies Latest reply on Jun 10, 2016 7:33 AM by abhishekbarve04_1611946

    API result of CyBle_GapcConnectDevice()

    abhishekbarve04_1611946

      Hello,

         

      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?

         

      Thanks.