This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to connect with peripheral having multiple services?

i am using ble central example from sdk15.the peripheral  i want to connect with Nrf52832 is not a Nordic device.Peripheral have 5 different services.now till i successfully make a connection with nordic by doing little modification in ble Uart central example. and receive one of its service data on nordic side.i want to connect with all off the service  of the peripheral.how i ll do this??

Parents
  • Hi, 

    Do you have the list of all the services you want to discover ? (the UUID list) 

    If you do you can just register the service to be discovered, the same as it's done inside ble_nus_c_init(). 

    If you don't know the services, and you want to make something like the nRFConnect app. It's more difficult and requires you do a little bit of work to make the discovery service generic. 

Reply
  • Hi, 

    Do you have the list of all the services you want to discover ? (the UUID list) 

    If you do you can just register the service to be discovered, the same as it's done inside ble_nus_c_init(). 

    If you don't know the services, and you want to make something like the nRFConnect app. It's more difficult and requires you do a little bit of work to make the discovery service generic. 

Children
Related