]> granicus.if.org Git - esp-idf/commitdiff
component/bt:change the ESP_PUBLIC_ADDR to BLE_ADDR_TYPE_PUBLIC.
authorYulong <huangyulong@espressif.com>
Fri, 5 May 2017 08:46:08 +0000 (04:46 -0400)
committerYulong <huangyulong@espressif.com>
Fri, 5 May 2017 08:46:08 +0000 (04:46 -0400)
examples/bluetooth/gatt_client/main/gattc_demo.c

index 48b1062a6dc1ad5c6eac0e254c9c16340874f321..17ca7410281a817f3944c31ea0c125ec5cfe0cd5 100644 (file)
@@ -72,7 +72,7 @@ static const char device_name[] = "Alert Notification";
 
 static esp_ble_scan_params_t ble_scan_params = {
     .scan_type              = BLE_SCAN_TYPE_ACTIVE,
-    .own_addr_type          = ESP_PUBLIC_ADDR,
+    .own_addr_type          = BLE_ADDR_TYPE_PUBLIC,
     .scan_filter_policy     = BLE_SCAN_FILTER_ALLOW_ALL,
     .scan_interval          = 0x50,
     .scan_window            = 0x30