File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 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
771 . 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
29291 . 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
35351 . 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.
You can’t perform that action at this time.
0 commit comments