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

Differentiating BLE connection types

Hi, I am trying to implement an example that support multiple peripherals (HRS & UART). When I get a connection (from either) I get the BLE_GAP_EVT_CONNECTED. How can I differentiate who I am getting connected to ? (HRS or UART). I can see the address but address is not a valid differentiator in my scenario. Thanks

Parents
  • Hi

    Okay, thank you for clarifying. It is possible to have multiple services like you're describing. Either to have both services available all the time, but in that case, both central devices will have access to both services.

    Alternatively, if you only want Machine A to be able to use UART and Machine B only should be able to use the HRS service, you can change the service UUIDs that you put into the advertising packet between disconnections.

    Best regards,

    Simon

Reply
  • Hi

    Okay, thank you for clarifying. It is possible to have multiple services like you're describing. Either to have both services available all the time, but in that case, both central devices will have access to both services.

    Alternatively, if you only want Machine A to be able to use UART and Machine B only should be able to use the HRS service, you can change the service UUIDs that you put into the advertising packet between disconnections.

    Best regards,

    Simon

Children
No Data
Related