You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BLE_Button/readme.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The template covers:
4
4
5
5
1. Setting up advertising and connection modes.
6
6
7
-
1. Creating an input characteristic: read-only, boolean, with notifications.
7
+
1. Creating an input characteristic: read-only, boolean, with notifications.
8
8
9
9
1. Constructing a service class and adding it to the BLE stack.
10
10
@@ -32,7 +32,9 @@ Building instructions for all samples are in the [main readme](https://github.co
32
32
33
33
1. Build the application and install it on your board as explained in the building instructions.
34
34
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