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

advertise multiple services

Hi,

This seems to be an issue that pops up often. However, I wasn't able to find an answer here in the Nordic forum.

What I have:

  • a number of vendor services
  • (services / characteristics are successfully added, I can see them using a Central device)
  • (I have increased 'vs_uuid_count' as suggested in the forum - works fine)

What I want:

  • From these services I'd like to advertise two
  • (I think I understand how 'ble_advertising_init' works, including advertising data and scan response)
  • (I think I understand the concept behind 'ble_uuid_t' , i.e.byte 12/13 and BLE_UUID_TYPE_VENDOR_BEGIN)

My question:

  • How do I setup advertising so that the 3rd and 5th service is advertised
  • (I understand that I have to use the standard advertisement packet and the scan response to advertise two separate 128bit services)

I appreciate your reply

Thank you Matthias

Parents
  • Hi Petter,

    or another question: if you look at the UART example

    static ble_uuid_t m_adv_uuids[] = { {BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE} }; /**< Universally unique service identifier. */

    BLE_UUID_NUS_SERVICE --> what is in byte 12/13 NUS_SERVICE_UUID_TYPE --> that we're talking about a vendor service

    My question: where do we say WHICH vendor service

    Greetings Matthias

Reply
  • Hi Petter,

    or another question: if you look at the UART example

    static ble_uuid_t m_adv_uuids[] = { {BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE} }; /**< Universally unique service identifier. */

    BLE_UUID_NUS_SERVICE --> what is in byte 12/13 NUS_SERVICE_UUID_TYPE --> that we're talking about a vendor service

    My question: where do we say WHICH vendor service

    Greetings Matthias

Children
No Data
Related