Open jeremy303 opened 7 years ago
Maybe I'm misunderstanding? Are the commands above needed to enable the patterns that include a long press? Is there any way to configure the Qmote to send 0xFF on a single 5 second long press (the same as 6+ clicks), as mentioned in the GATT specification?
Hi HolySamosa,
Qmote's GATT command format is 0x10 [Button Combination Code] [F-Code]. Button Combination Code means click pattern. As your sample, 0x05 means one long one short, not 5 seconds. Similarly, 0x06 means short long short click pattern. You can get the references in our GATT Specification document, get it here - http://qblinks.com/devkit/developers/qmote-developers The reference table is at page 3.
@liminghuang Thanks for the clarification. I'm interested in identifying a single long button press. The table indicates that a 5-second long press (as well as 6+clicks) should send 0xFF, however I'm not receiving 0xFF on the long press- only on the 6 clicks. Is there a way to capture a single long press event, aside from measuring the interval of down and up notifications? Thanks!
@HolySamosa I checked this command with our engineer, 0xFF has been canceled. I'm sorry about it and we will update a new version document. The reason why we canceled 0xFF is that Snapchat app support one click and long press for video recording.
Using the Android Sample, it appears my Qmote isn't sending a notification for the 5 second "long press" which the app enables by sensing
0x10, 0x05, 0x01
to the Command characteristic in this line:https://github.com/qblinks/qmote_makers_projects/blob/37bafa91d9588e9dcea499f8a1a965c614a64450/Qmote_Android_Sample/app/src/main/java/com/example/tzuchingchang/qmote_android_sample/MainActivity.java#L380
I also tried without luck sending
0x10, 0x06, 0x01
to enable this option, as the iOS app added in this commit: https://github.com/qblinks/qmote_makers_projects/commit/8548a29c492bd8c0c030559c871d454d688f05b1My Qmote S firmware version is 2.15.
Any suggestions?