DiscoverPrimaryServiceByUuid returns INVALID_OPERATION

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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. 

0 Likes
1 Reply
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Can you attach th eproject.

   

Thanks,

   

Hima

0 Likes