Hi everyone,
I created a custom service that I want to be advertised through scan response. Also, I want to advertise the INFORMATION SERVICE through advertising data. I'm trying to combine advdata and srdata but when I am advertising only the custom service is appeared.
This is the struct array holding the services along with their types
static ble_uuid_t m_adv_uuids[] = { {BLE_UUID_DEVICE_INFORMATION_SERVICE, BLE_UUID_TYPE_BLE}, {IMU_SERVICE_UUID, BLE_UUID_TYPE_VENDOR_BEGIN} };
Putting one UUID in the advertising data and one UUID (the custom one) in the scan response data
init.advdata.uuids_complete.uuid_cnt = 1; init.advdata.uuids_complete.p_uuids = &m_adv_uuids[0]; init.srdata.uuids_complete.uuid_cnt = 1; init.srdata.uuids_complete.p_uuids = &m_adv_uuids[1];
But when I advertise only the custom service appears
Any advice?