component/bt : fix advertising bug
1. adv data flag 2. default adv data not BR/EDR in demo
This commit is contained in:
parent
f867e0671e
commit
daf58e3852
|
@ -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) {
|
if (p_adv_data->flag != 0) {
|
||||||
mask = BTM_BLE_AD_BIT_FLAGS;
|
mask = BTM_BLE_AD_BIT_FLAGS;
|
||||||
|
bta_adv_data->flag = p_adv_data->flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_adv_data->include_name) {
|
if (p_adv_data->include_name) {
|
||||||
|
|
|
@ -68,7 +68,7 @@ static esp_ble_adv_data_t test_adv_data = {
|
||||||
.p_service_data = NULL,
|
.p_service_data = NULL,
|
||||||
.service_uuid_len = 32,
|
.service_uuid_len = 32,
|
||||||
.p_service_uuid = test_service_uuid128,
|
.p_service_uuid = test_service_uuid128,
|
||||||
.flag = 0x2,
|
.flag = 0x6,
|
||||||
};
|
};
|
||||||
|
|
||||||
static esp_ble_adv_params_t test_adv_params = {
|
static esp_ble_adv_params_t test_adv_params = {
|
||||||
|
|
Loading…
Reference in a new issue