CyBle_GattcDiscoverAllPrimaryServices

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

cross mob
Anonymous
Not applicable

Hi everyone

   

Im trying to get all the primary services using a custom client that will be able to handle data that it receives from a server/peripheral device. But i really dont know how can i get the information about the services obtained from the ble stack.

   

CyBle_GattcDiscoverAllPrimaryServices ressponses CYBLE_EVT_GATTC_READ_BY_GROUP_TYPE_RSP event. What should i do when this event ocurs and where can i find the uuids obtained from the server.

   


0 Likes
2 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I don't have an answer for you but maybe this ref material might be of

   

use -

   

 

   

    

   

                    

   

bmah@cypress.com     BLE

   

http://www.cypress.com/?id=5509 100 Projects in 100 Days with Bluetooth

   

http://www.cypress.com/?rID=102512     AN91445 - Antenna Design Guide

   

http://www.cypress.com/?rID=102505     AN94020 - Getting Started with PRoC™ BLE

   

http://www.cypress.com/?rID=110007     AN92584 - Designing for Low Power and Estimating Battery Life for BLE Applications

   

http://www.cypress.com/?rID=109900     AN91162 - Creating a BLE Custom Profile

   

http://www.cypress.com/?rID=110107     AN91184 - PSoC 4 BLE - Designing BLE Applications

   

http://www.cypress.com/?rID=102504     AN91267 - Getting Started with PSoC® 4 BLE

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 Just adding a suggestion: If the client is receiving the data from the server over notifications, you may use the event CYBLE_EVT_GATTC_HANDLE_VALUE_NTF at the client side. Inside this event, you may write:

   

CYBLE_GATTC_HANDLE_VALUE_NTF_PARAM_T *Serverdata = (CYBLE_GATTC_HANDLE_VALUE_NTF_PARAM_T *)eventparam;

   

Received_Data=*Serverdata->handleValPair.value.val;

0 Likes