Skip to content

Commit 4cc6991

Browse files
committed
Merge pull request ARMmbed#61 from pan-/gap_button_instruction
Emphasize that this example works is about advertising which operates in disconnected mode.
2 parents 60ccea7 + 1acb98a commit 4cc6991

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

BLE_GAPButton/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Button count over GAP
22

3-
This application shows how to use GAP to transmit a simple value every time that value is updated:
3+
This application shows how to use GAP to transmit a simple value to disconnected peer listening for advertisement every time that value is updated:
44

5-
1. The value is a count of how many times a button on the device was pressed (the code actually monitors the button's releases, not press downs).
5+
1. The value is a count of how many times a button on the device was pressed (the code actually monitors the button's releases, not press downs).
66

77
1. We transmit the value in the SERVICE_DATA field of the advertising payload.
88

@@ -28,10 +28,14 @@ Building instructions for all samples are in the [main readme](https://github.co
2828

2929
1. Open the BLE scanner on your phone.
3030

31-
1. Find your device.
31+
1. Find your device and look at the advertisement broadcasted by your device (there is no need to connect to your device).
3232

33-
1. The Service Data field for your device should show the button press count. The starting value is 0.
33+
1. The Service Data field of the advertisement packet broadcasted by your device reflects the button press count. The starting value is 0.
3434

3535
1. Press the button on the device.
3636

37-
1. The Service Data field value should change.
37+
1. The Service Data field value of the advertisement packet should change every time you press the button.
38+
39+
## Note
40+
41+
Since broadcasting is not reliable and your phone may scan intermittently, it is possible that your phone will miss button updates.

0 commit comments

Comments
 (0)