File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
libraries/BLE/examples/test Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void setup() {
15
15
BLE.begin ();
16
16
Serial.println (BLE.address ());
17
17
18
- BLE.startScanning (" LED" );
18
+ BLE.scanFoName (" LED" );
19
19
}
20
20
21
21
void controlLed (BLEDevice &peripheral)
@@ -74,12 +74,12 @@ void loop() {
74
74
if (peripheral)
75
75
{
76
76
Serial.println (peripheral.address ());
77
- BLE.stopScanning ();
77
+ BLE.stopScan ();
78
78
delay (1000 );
79
79
// central connected to peripheral
80
80
controlLed (peripheral);
81
81
delay (4000 );
82
- BLE.startScanning (" LED" );
82
+ BLE.scanFoName (" LED" );
83
83
}
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void setup() {
15
15
BLE.begin ();
16
16
Serial.println (BLE.address ());
17
17
18
- BLE.startScanning (" LED" );
18
+ BLE.scanFoName (" LED" );
19
19
}
20
20
21
21
void controlLed (BLEDevice &peripheral)
@@ -77,12 +77,12 @@ void loop() {
77
77
if (peripheral)
78
78
{
79
79
Serial.println (peripheral.address ());
80
- BLE.stopScanning ();
80
+ BLE.stopScan ();
81
81
delay (1000 );
82
82
// central connected to peripheral
83
83
controlLed (peripheral);
84
84
delay (4000 );
85
- BLE.startScanning (" LED" );
85
+ BLE.scanFoName (" LED" );
86
86
}
87
87
}
88
88
You can’t perform that action at this time.
0 commit comments