You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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#blue­tooth-le

    Realistically your best bets right now are:

    • 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.

About

Avatar for Gordon @Gordon started