Hello!
I hope this question has not been asked before - at least I can't find it. I do have an application with two vender specific services (128bit UUID's) and I want to advertise both of them.
First: I know how to advertise two standard services (16bit UUIDs):
ble_uuid_t m_adv_uuids[] =
{
{BLE_UUID_SERVICE_ONE, BLE_UUID_TYPE_BLE},
{BLE_UUID_SERVICE_TWO, BLE_UUID_TYPE_BLE}
};
Second: I know how to advertise one vendor Service (128bit UUID):
ble_uuid_t m_adv_uuids[] =
{
{BLE_UUID_SERVICE_ONE, BLE_UUID_TYPE_VENDOR_BEGIN}
};
But when I want to add a sencond vendor UUID to "Second", I end up in errors. Mixing BLE and VENDOR_BEGIN is possible, but than I only have one 128bit UUID and the others are 16bit.
PS: Adding UUIDs is done the folowing way:
ble_advdata_t srdata;
memset(&srdata, 0, sizeof(srdata));
srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
srdata.uuids_complete.p_uuids = m_adv_uuids;
Thanks, Johann