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

How to develop a GATT Client application?

I have a central device , that acting as a gatt server. the service is customize, and 128bit- primary serivice UUID ,its characteristics' UUIDs(128bit) are all known, how to discovery the service and characteristics in nrf51822 peripheral? I don't find any examples that has above function.

Parents
  • Hi there,

    128bit- primary serivice UUID ,its characteristics' UUIDs(128bit) are all known, how to discovery the service and characteristics in nrf51822 peripheral?

    You need to do this in 2 steps with the S110:

    1. Use sd_ble_uuid_vs_add() to add all the 128-bit UUIDs that your central uses
    2. Use the GATTC functions to discovery your services characteristics, for example:

    sd_ble_gattc_primary_services_discover() sd_ble_gattc_characteristics_discover()

    While using the UUIDs that you previously added.

    Regards,

    Carles

Reply
  • Hi there,

    128bit- primary serivice UUID ,its characteristics' UUIDs(128bit) are all known, how to discovery the service and characteristics in nrf51822 peripheral?

    You need to do this in 2 steps with the S110:

    1. Use sd_ble_uuid_vs_add() to add all the 128-bit UUIDs that your central uses
    2. Use the GATTC functions to discovery your services characteristics, for example:

    sd_ble_gattc_primary_services_discover() sd_ble_gattc_characteristics_discover()

    While using the UUIDs that you previously added.

    Regards,

    Carles

Children
No Data
Related