Basically you need to advertise a UUID type and so we (ab)use the Bluetooth 'digital input' service type. You could also use analog, or there are a bunch of other ones there.
There's also the ability to use Espruino's own UUID (0x0590) and then you can even send JSON (although since there are so few bytes available you're quite limited)
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.
Hi!
0x2A56
is based on https://github.com/oesmith/gatt-xml/blob/master/org.bluetooth.characteristic.digital.xml (for some reason the Bluetooth SIG stopped hosting pages on these which makes them harder to find)It's handled by EspruinoHub here: https://github.com/espruino/EspruinoHub/blob/master/lib/attributes.js#L257
Basically you need to advertise a UUID type and so we (ab)use the Bluetooth 'digital input' service type. You could also use analog, or there are a bunch of other ones there.
There's also the ability to use Espruino's own UUID (
0x0590
) and then you can even send JSON (although since there are so few bytes available you're quite limited)