Skip to content

Commit d25fcd9

Browse files
Apply suggestions from code review
Co-authored-by: Karl Söderby <35461661+karlsoderby@users.noreply.github.com>
1 parent 6584712 commit d25fcd9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/learn/05.communication/08.bluetooth/bluetooth.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ In the following section you will find an overview and explanation of the librar
238238

239239
Below you can find examples showing how to send data between two Arduino boards and how to connect to your Arduino board, reading and writing values using your smartphone.
240240

241-
### Send data between two Arduino boards
241+
### Remote LED Control
242242

243-
**Central**
243+
This example can be used with two Bluetooth® supported Arduino boards, one with a button, and the other with an LED. When the button is pressed, it will advertise a corresponding value (high/low), which will be received by the board with an LED.
244+
245+
#### Central
244246

245247
This example scans for Bluetooth Low Energy peripherals with a specific UUID (in this case another Arduino board), connects to it, and lets you control the built-in LED with a button connected to pin 4.
246248

@@ -357,7 +359,7 @@ void controlLed(BLEDevice peripheral) {
357359
}
358360
```
359361

360-
**Peripheral**
362+
#### Peripheral
361363

362364
This example is the corresponding sketch to the one above, setting up your Arduino board as peripheral with the correct UUID, advertising a built-in LED characteristic.
363365

@@ -436,7 +438,7 @@ void loop() {
436438
}
437439
```
438440

439-
### Control you Arduino with a Smartphone
441+
### Control an Arduino with a Smartphone App
440442

441443
This example lets you control the built-in LED on your Arduino board with your smartphone. We recommend using the LightBlue app available for [Android](https://play.google.com/store/apps/details?id=com.punchthrough.lightblueexplorer&hl=en&pli=1) and [iOS ](https://apps.apple.com/us/app/lightblue/id557428110) for connecting to your board. Once installed upload the code and follow the steps as shown in the image below.
442444

@@ -465,7 +467,7 @@ void setup() {
465467
while (1);
466468
}
467469
468-
BLE.setLocalName("MKR WiFi 1010"); //Setting a name that will appear when scanning for Bluetooth® devices
470+
BLE.setLocalName("<My Board Name>"); //Setting a name that will appear when scanning for Bluetooth® devices
469471
BLE.setAdvertisedService(newService);
470472
471473
newService.addCharacteristic(switchChar); //add characteristics to a service

0 commit comments

Comments
 (0)