|
| 1 | +diff --git a/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino b/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino |
| 2 | +index d3606e69..1439b998 100644 |
| 3 | +--- a/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino |
| 4 | ++++ b/libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino |
| 5 | +@@ -19,7 +19,7 @@ uint32_t scanTime = 100; //In 10ms (1000ms) |
| 6 | + BLEScan* pBLEScan; |
| 7 | + |
| 8 | + class MyBLEExtAdvertisingCallbacks: public BLEExtAdvertisingCallbacks { |
| 9 | +- void onResult(esp_ble_gap_ext_adv_reprot_t report) { |
| 10 | ++ void onResult(esp_ble_gap_ext_adv_report_t report) { |
| 11 | + if(report.event_type & ESP_BLE_GAP_SET_EXT_ADV_PROP_LEGACY){ |
| 12 | + // here we can receive regular advertising data from BLE4.x devices |
| 13 | + Serial.println("BLE4.2"); |
| 14 | +diff --git a/libraries/BLE/examples/BLE5_periodic_sync/BLE5_periodic_sync.ino b/libraries/BLE/examples/BLE5_periodic_sync/BLE5_periodic_sync.ino |
| 15 | +index ac3a5e98..17fd8596 100644 |
| 16 | +--- a/libraries/BLE/examples/BLE5_periodic_sync/BLE5_periodic_sync.ino |
| 17 | ++++ b/libraries/BLE/examples/BLE5_periodic_sync/BLE5_periodic_sync.ino |
| 18 | +@@ -27,7 +27,7 @@ static esp_ble_gap_periodic_adv_sync_params_t periodic_adv_sync_params = { |
| 19 | + |
| 20 | + class MyBLEExtAdvertisingCallbacks : public BLEExtAdvertisingCallbacks |
| 21 | + { |
| 22 | +- void onResult(esp_ble_gap_ext_adv_reprot_t params) |
| 23 | ++ void onResult(esp_ble_gap_ext_adv_report_t params) |
| 24 | + { |
| 25 | + uint8_t *adv_name = NULL; |
| 26 | + uint8_t adv_name_len = 0; |
| 27 | +diff --git a/libraries/BLE/src/BLEAdvertisedDevice.h b/libraries/BLE/src/BLEAdvertisedDevice.h |
| 28 | +index b785838c..155619c3 100644 |
| 29 | +--- a/libraries/BLE/src/BLEAdvertisedDevice.h |
| 30 | ++++ b/libraries/BLE/src/BLEAdvertisedDevice.h |
| 31 | +@@ -135,7 +135,7 @@ public: |
| 32 | + * As we are scanning, we will find new devices. When found, this call back is invoked with a reference to the |
| 33 | + * device that was found. During any individual scan, a device will only be detected one time. |
| 34 | + */ |
| 35 | +- virtual void onResult(esp_ble_gap_ext_adv_reprot_t report) = 0; |
| 36 | ++ virtual void onResult(esp_ble_gap_ext_adv_report_t report) = 0; |
| 37 | + }; |
| 38 | + #endif // CONFIG_BT_BLE_50_FEATURES_SUPPORTED |
| 39 | + |
| 40 | +diff --git a/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h b/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 41 | +index 0c06c5e8..06c72514 100644 |
| 42 | +--- a/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 43 | ++++ b/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 44 | +@@ -896,7 +896,7 @@ typedef struct { |
| 45 | + esp_ble_gap_ext_adv_data_status_t data_status; /*!< data type */ |
| 46 | + uint8_t adv_data_len; /*!< extend advertising data length */ |
| 47 | + uint8_t adv_data[251]; /*!< extend advertising data */ |
| 48 | +-} esp_ble_gap_ext_adv_reprot_t; |
| 49 | ++} esp_ble_gap_ext_adv_report_t; |
| 50 | + |
| 51 | + /** |
| 52 | + * @brief periodic adv report parameters |
| 53 | +@@ -1340,7 +1340,7 @@ typedef union { |
| 54 | + * @brief ESP_GAP_BLE_EXT_ADV_REPORT_EVT |
| 55 | + */ |
| 56 | + struct ble_ext_adv_report_param { |
| 57 | +- esp_ble_gap_ext_adv_reprot_t params; /*!< extend advertising report parameters */ |
| 58 | ++ esp_ble_gap_ext_adv_report_t params; /*!< extend advertising report parameters */ |
| 59 | + } ext_adv_report; /*!< Event parameter of ESP_GAP_BLE_EXT_ADV_REPORT_EVT */ |
| 60 | + /** |
| 61 | + * @brief ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT |
| 62 | +diff --git a/tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h b/tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 63 | +index 0c06c5e8..06c72514 100644 |
| 64 | +--- a/tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 65 | ++++ b/tools/sdk/esp32c3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 66 | +@@ -896,7 +896,7 @@ typedef struct { |
| 67 | + esp_ble_gap_ext_adv_data_status_t data_status; /*!< data type */ |
| 68 | + uint8_t adv_data_len; /*!< extend advertising data length */ |
| 69 | + uint8_t adv_data[251]; /*!< extend advertising data */ |
| 70 | +-} esp_ble_gap_ext_adv_reprot_t; |
| 71 | ++} esp_ble_gap_ext_adv_report_t; |
| 72 | + |
| 73 | + /** |
| 74 | + * @brief periodic adv report parameters |
| 75 | +@@ -1340,7 +1340,7 @@ typedef union { |
| 76 | + * @brief ESP_GAP_BLE_EXT_ADV_REPORT_EVT |
| 77 | + */ |
| 78 | + struct ble_ext_adv_report_param { |
| 79 | +- esp_ble_gap_ext_adv_reprot_t params; /*!< extend advertising report parameters */ |
| 80 | ++ esp_ble_gap_ext_adv_report_t params; /*!< extend advertising report parameters */ |
| 81 | + } ext_adv_report; /*!< Event parameter of ESP_GAP_BLE_EXT_ADV_REPORT_EVT */ |
| 82 | + /** |
| 83 | + * @brief ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT |
| 84 | +diff --git a/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h b/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 85 | +index 0c06c5e8..06c72514 100644 |
| 86 | +--- a/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 87 | ++++ b/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h |
| 88 | +@@ -896,7 +896,7 @@ typedef struct { |
| 89 | + esp_ble_gap_ext_adv_data_status_t data_status; /*!< data type */ |
| 90 | + uint8_t adv_data_len; /*!< extend advertising data length */ |
| 91 | + uint8_t adv_data[251]; /*!< extend advertising data */ |
| 92 | +-} esp_ble_gap_ext_adv_reprot_t; |
| 93 | ++} esp_ble_gap_ext_adv_report_t; |
| 94 | + |
| 95 | + /** |
| 96 | + * @brief periodic adv report parameters |
| 97 | +@@ -1340,7 +1340,7 @@ typedef union { |
| 98 | + * @brief ESP_GAP_BLE_EXT_ADV_REPORT_EVT |
| 99 | + */ |
| 100 | + struct ble_ext_adv_report_param { |
| 101 | +- esp_ble_gap_ext_adv_reprot_t params; /*!< extend advertising report parameters */ |
| 102 | ++ esp_ble_gap_ext_adv_report_t params; /*!< extend advertising report parameters */ |
| 103 | + } ext_adv_report; /*!< Event parameter of ESP_GAP_BLE_EXT_ADV_REPORT_EVT */ |
| 104 | + /** |
| 105 | + * @brief ESP_GAP_BLE_PERIODIC_ADV_REPORT_EVT |
0 commit comments