deleted deleted • about 6 years ago
Button press notifications - identifying the type?
I am just about done with my V.BTTN interface work. The last piece consists of these two questions:
First, I see in the docs that there 4 types of notifications reported
00 - Button release detected
01 - Button press detected
03 - Button press-release between 2-10 seconds
04 - Fall event detected
When I get a notification after pressing a button, short or long, I get a notification with the UUID for the notification characteristic (fffffff4-00f7-4000-b000-000000000000), a handle with the value or 84, and a descriptor with the single letter "D". Not much else. I get that same data when I press down, lift up, and whether or not I do a short or a long button press.
Do I need to make an additional call to read the information to get the values listed above that identify the notification type? If so, what service and characteristic do I need to read, or what descriptor? A little pseudo-code would help.
Comments are closed.