Skip to content

Commit 7b242fb

Browse files
committed
Fix BLE examples
1 parent 902934f commit 7b242fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/BLE/examples/BLE5_extended_scan/BLE5_extended_scan.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ uint32_t scanTime = 100; //In 10ms (1000ms)
2020
BLEScan* pBLEScan;
2121

2222
class MyBLEExtAdvertisingCallbacks: public BLEExtAdvertisingCallbacks {
23-
void onResult(esp_ble_gap_ext_adv_reprot_t report) {
23+
void onResult(esp_ble_gap_ext_adv_report_t report) {
2424
if(report.event_type & ESP_BLE_GAP_SET_EXT_ADV_PROP_LEGACY){
2525
// here we can receive regular advertising data from BLE4.x devices
2626
Serial.println("BLE4.2");

libraries/BLE/examples/BLE5_periodic_sync/BLE5_periodic_sync.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static esp_ble_gap_periodic_adv_sync_params_t periodic_adv_sync_params = {
2828

2929
class MyBLEExtAdvertisingCallbacks : public BLEExtAdvertisingCallbacks
3030
{
31-
void onResult(esp_ble_gap_ext_adv_reprot_t params)
31+
void onResult(esp_ble_gap_ext_adv_report_t params)
3232
{
3333
uint8_t *adv_name = NULL;
3434
uint8_t adv_name_len = 0;

0 commit comments

Comments
 (0)