Skip to content

Commit

Permalink
Add Local Name to BLE advertising data packet and fix the bug when mo…
Browse files Browse the repository at this point in the history
…re than one Duo being advertising, the LightBlue can not distinguish them
  • Loading branch information
XuGuohui committed Jan 16, 2016
1 parent b673c06 commit 6655d2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hal/src/duo/ble_provision.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ void ble_provision_init(void)
adv_data.flag = 0x06;
adv_data.p_services_128b = &service;

wiced_bt_ble_set_advertisement_data(BTM_BLE_ADVERT_BIT_FLAGS|BTM_BLE_ADVERT_BIT_SERVICE_128, &adv_data);
wiced_bt_ble_set_advertisement_data(BTM_BLE_ADVERT_BIT_FLAGS|BTM_BLE_ADVERT_BIT_SERVICE_128|BTM_BLE_ADVERT_BIT_DEV_NAME, &adv_data);

/* Enable privacy */
wiced_bt_ble_enable_privacy( TRUE );

/* Register for gatt event notifications */
wiced_bt_gatt_register(&ble_provision_gatt_cback);
Expand Down

0 comments on commit 6655d2b

Please sign in to comment.