1 Reply Latest reply on Mar 20, 2017 8:17 PM by hima

    DiscoverPrimaryServiceByUuid returns INVALID_OPERATION

    christopher.haigney_2288746

      My BLE Central/GATT Client is attempting to discover the services on a connected BLE peripheral/server. After the BLE central is in the CONNECTED state, it makes a request for the services by calling CyBle_GattcDiscoverPrimaryServiceByUuid(). This is returning INVALID_OPERATION. I can't find any documentation on why this call is failing. I've also tried CyBle_GattcDiscoverAllPrimaryServices() but got the same result. I was using the example project UART_to_USB_central and UART_to_USB_peripheral. The service running on the peripheral is a custom service. When those functions are called, the cyBle_state is CYBLE_STATE_CONNECTED and the cyBle_clientState is CYBLE_CLIENT_STATE_CONNECTED.