Skip to content

Commit 5bdcf14

Browse files
committed
Fix build issues for test example sketches
1 parent a7a6ada commit 5bdcf14

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libraries/BLE/examples/test/central/central.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup() {
1515
BLE.begin();
1616
Serial.println(BLE.address());
1717

18-
BLE.startScanning("LED");
18+
BLE.scanFoName("LED");
1919
}
2020

2121
void controlLed(BLEDevice &peripheral)
@@ -74,12 +74,12 @@ void loop() {
7474
if (peripheral)
7575
{
7676
Serial.println(peripheral.address());
77-
BLE.stopScanning();
77+
BLE.stopScan();
7878
delay (1000);
7979
// central connected to peripheral
8080
controlLed(peripheral);
8181
delay (4000);
82-
BLE.startScanning("LED");
82+
BLE.scanFoName("LED");
8383
}
8484
}
8585

libraries/BLE/examples/test/notifycentral/notifycentral.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void setup() {
1515
BLE.begin();
1616
Serial.println(BLE.address());
1717

18-
BLE.startScanning("LED");
18+
BLE.scanFoName("LED");
1919
}
2020

2121
void controlLed(BLEDevice &peripheral)
@@ -77,12 +77,12 @@ void loop() {
7777
if (peripheral)
7878
{
7979
Serial.println(peripheral.address());
80-
BLE.stopScanning();
80+
BLE.stopScan();
8181
delay (1000);
8282
// central connected to peripheral
8383
controlLed(peripheral);
8484
delay (4000);
85-
BLE.startScanning("LED");
85+
BLE.scanFoName("LED");
8686
}
8787
}
8888

0 commit comments

Comments
 (0)