It is quite a common thing to want to do, but Bluetooth LE support isn't quite as straightforward as stuff like COM ports and there isn't a nice platform agnostic way to just send data.
Just make Puck.js a Bluetooth HID device like a keyboard. It can then send keypresses that you can pick up with whatever background app you want - or perhaps even send the keypresses needed to run a command directly.
Write your own background service that uses BLE directly. What language you use really depends on what you're happy with - but let me know if you're interested in using a language that I didn't cover on that Interfacing page.
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,
It is quite a common thing to want to do, but Bluetooth LE support isn't quite as straightforward as stuff like COM ports and there isn't a nice platform agnostic way to just send data.
I've tried to write up a lot of the ways of communicating from different languages with examples here: http://www.espruino.com/Interfacing#bluetooth-le
Realistically your best bets right now are: