Skip to content

Commit 36bcd12

Browse files
committed
Merge pull request ARMmbed#64 from pan-/ble_button_instructions
Improve BLE_Button documentation.
2 parents 2933b7d + be4d8f1 commit 36bcd12

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

BLE_Button/readme.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The template covers:
44

55
1. Setting up advertising and connection modes.
66

7-
1. Creating an input characteristic: read-only, boolean, with notifications.
7+
1. Creating an input characteristic: read-only, boolean, with notifications.
88

99
1. Constructing a service class and adding it to the BLE stack.
1010

@@ -32,7 +32,9 @@ Building instructions for all samples are in the [main readme](https://github.co
3232

3333
1. Build the application and install it on your board as explained in the building instructions.
3434
1. Open the BLE scanner on your phone.
35-
1. Find your device.
36-
1. Press the button on your board.
37-
1. The characteristic is automatically updated on every press and release, and the BLE scanner shows its value changes.
38-
35+
1. Find your device, it should appear with the name `Button` in the scanner.
36+
1. Establish a connection with the device.
37+
1. Discover the services and the characteristics on the device. The *Button service* has the UUID `0xA000` and includes the *Button state characteristic* which has the UUID `0xA001`.
38+
1. Register for the notifications sent by the button state characteristic then the scanner will automatically receive a notification containing the new state of the button every time the state of the button changes.
39+
1. Pressing Button 1 on your board updates the state of the button and sends a notification to the scanner. The new state of the button characteristic value should be equal to 0x01.
40+
1. Releasing Button 1 on your board updates the state of the button and sends a notification to the scanner. The new state of the button characteristic value should be equal to 0x00.

0 commit comments

Comments
 (0)