Skip to content

Commit 80f077c

Browse files
committed
Merge branch 'pr-232'
2 parents e8d6074 + 0876e16 commit 80f077c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* https://github.com/arduino-libraries/ArduinoBLE/pull/183
1313
* https://github.com/arduino-libraries/ArduinoBLE/pull/220
1414
* https://github.com/arduino-libraries/ArduinoBLE/pull/230
15+
* https://github.com/arduino-libraries/ArduinoBLE/pull/232
1516
<!-- pull requests -->
1617

1718
You can consider this as an experimental version of the library, that you can use to test features contributed by the community that haven't been merged yet.

examples/Peripheral/CallbackLED/CallbackLED.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ void setup() {
4949
// add service
5050
BLE.addService(ledService);
5151

52-
// assign event handlers for connected, disconnected to peripheral
53-
BLE.setEventHandler(BLEConnected, blePeripheralConnectHandler);
54-
BLE.setEventHandler(BLEDisconnected, blePeripheralDisconnectHandler);
52+
// assign event handlers for connected, disconnected to central
53+
BLE.setEventHandler(BLEConnected, bleCentralConnectedHandler);
54+
BLE.setEventHandler(BLEDisconnected, bleCentralDisconnectedHandler);
5555

5656
// assign event handlers for characteristic
5757
switchCharacteristic.setEventHandler(BLEWritten, switchCharacteristicWritten);
@@ -69,13 +69,13 @@ void loop() {
6969
BLE.poll();
7070
}
7171

72-
void blePeripheralConnectHandler(BLEDevice central) {
72+
void bleCentralConnectedHandler(BLEDevice central) {
7373
// central connected event handler
7474
Serial.print("Connected event, central: ");
7575
Serial.println(central.address());
7676
}
7777

78-
void blePeripheralDisconnectHandler(BLEDevice central) {
78+
void bleCentralDisconnectedHandler(BLEDevice central) {
7979
// central disconnected event handler
8080
Serial.print("Disconnected event, central: ");
8181
Serial.println(central.address());

examples/Peripheral/LED/LED.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void setup() {
5858
}
5959

6060
void loop() {
61-
// listen for Bluetooth® Low Energy peripherals to connect:
61+
// listen for Bluetooth® Low Energy central to connect:
6262
BLEDevice central = BLE.central();
6363

6464
// if a central is connected to peripheral:

0 commit comments

Comments
 (0)