component/bt : fix advertising bug

1. adv data flag
2. default adv data not BR/EDR in demo
This commit is contained in:
Tian Hao 2016-12-23 15:57:44 +08:00
parent f867e0671e
commit daf58e3852
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ static void btc_to_bta_adv_data(esp_ble_adv_data_t *p_adv_data, tBTA_BLE_ADV_DAT
if (p_adv_data->flag != 0) {
mask = BTM_BLE_AD_BIT_FLAGS;
bta_adv_data->flag = p_adv_data->flag;
}
if (p_adv_data->include_name) {

View File

@ -68,7 +68,7 @@ static esp_ble_adv_data_t test_adv_data = {
.p_service_data = NULL,
.service_uuid_len = 32,
.p_service_uuid = test_service_uuid128,
.flag = 0x2,
.flag = 0x6,
};
static esp_ble_adv_params_t test_adv_params = {