0x2a4d exists twice and is the only characteristic that will notify, so this is probably the one I'm looking for, but
c..on("characteristicvaluechanged",… and c.startNotifications() doesn't work
meaning it works, but the button does not notify anything
When I pair it with my smartphone there is a dialog popping up first.
Will there be something to happen first before both are connected?
Like writing back to one of the other characteristics to say that we'd like to connect?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There is a HID module for BLE that helps Espruino to emulate a HID device (like keyboard or media controller) itself.
What I want to do is exactly the opposite:
I bought a cheap 1-button camera trigger for smartphones (that sends a "volume up" button command)
want to use it on my Espruino project as a remote switch, but how?
I can:
find and connect it it via
NRF.requestDevice
(named "AB Shutter3" - prefix "AB" works)find a a single service (
1812
) and fetch itfind a bunch of characteristics:
The odd thing is:
0x2a4d
exists twice and is the only characteristic that willnotify
, so this is probably the one I'm looking for, butc..on("characteristicvaluechanged",…
andc.startNotifications()
doesn't workWhen I pair it with my smartphone there is a dialog popping up first.
Will there be something to happen first before both are connected?
Like writing back to one of the other characteristics to say that we'd like to connect?
Any hints or links appreciated.
1 Attachment