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

How add a name to a custom service ?

Is there a way to broadcast the service name in addition to service UUID in a custom service?

How can I add it to service structure ?

Parents
  • Two comments on this:

    1. The advertisement data Service UUIDs are supported by the SoftDevice and you can include those when calling sd_ble_gap_adv_data_set(), you would need to use one of the BLE_GAP_AD_TYPE_xxBIT_SERVICE_UUID adv data types in the buffer provided.

    2. Although you cannot name a service, you can associate a UTF-8 string with a characteristic, which is provided to the sd_ble_gatts_characteristic_add() via theses fields in ble_gatts_char_md_t:

    p_char_user_desc char_user_desc_max_size char_user_desc_size

    Carles

  • Joe,

    I'm curious about your approach. Can you share a code snippet? Are you saying that the descriptor name cannot be read at all in Anrdoid/iOS, or is it just when using the Nordic app?

    -K

Reply Children
No Data
Related