Hello everyone!
I am trying unsuccessfully to advertise a custom UUID as LBS along whit HRS but the examples use different functions to handle the advertising.
The blink example use:
- ble_uuid_t adv_uuids[] = {{LBS_UUID_SERVICE, m_lbs.uuid_type}}
- ble_advdata_encode(&advdata, m_adv_data.adv_data.p_data, &m_adv_data.adv_data.len)
- ble_advdata_encode(&srdata, m_adv_data.scan_rsp_data.p_data, &m_adv_data.scan_rsp_data.len)
- sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &adv_params);
- sd_ble_gap_adv_start(m_adv_handle, APP_BLE_CONN_CFG_TAG);
But the hrs example only use:
- static ble_uuid_t m_adv_uuids[] ={{BLE_UUID_HEART_RATE_SERVICE, BLE_UUID_TYPE_BLE}};
- ble_advertising_init(&m_advertising, &init);
- ble_advertising_conn_cfg_tag_set(&m_advertising, APP_BLE_CONN_CFG_TAG);
- ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
why are they using so different function How can I use those services at the same time? a tutorial somewhere maybe?
Tank you in advance!