Connecting a Puck to the Internet

Posted on
  • All,
    I'm not clear on how to connect my Puck to the internet. I understand I'll need a Bluetooth Smart Internet Gateway ("With a suitable Bluetooth Smart to Internet gateway you'll be able to put your Puck on the internet!"), but I'm wondering if someone might be willing to be lead me in the right direction as to identify a "suitable Bluetooth Smart Internet gateway."

  • There's a tutorial here: http://www.espruino.com/Puck.js+HTTP+Proxy

    Getting the bluetooth Hub up on a Pi is covered in the README of the repo here: https://github.com/espruino/EspruinoHub

  • Thanks Ollie. I'm wondering if a Raspberry Pi is required or if EspruinoHub would run on a linux VM on a Mac? After briefly reviewing the code, it doesn't seem to be specific to RaspPi. Thoughts?

  • I haven't looked at the source, but I doubt has to be a Pi. Probably Pi easy as cheap and has built in bluetooth (model 3)

  • @benddennis Just stumbled upon this:
    https://itunes.apple.com/us/app/iot-gateway-for-ble/id1123918633?mt=8

    Haven't tested it yet, but it might be suitable, at least for quick testing/debug purposes.

  • Thanks @prefectionist. This looks promising, at least for testing. Now, I need to figure out how to send messages to the Gateway.

  • Thanks @prefectionist. This looks promising, at least for testing. Now, I need to figure out how to send messages to the Gateway.

  • The hub should run under any Linux - the only gotcha in your case will be making sure that the VM is able to access your Bluetooth LE hardware.

    I'm not sure if that iOS app provides the HTTP Proxy API, but you can probably use it some other way. Another potential option is to use the Adafruit Bluefruit app - which will forward data from the Puck's UART connection over MQTT to their adafruit.io service.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Connecting a Puck to the Internet

Posted by Avatar for benddennis @benddennis

Actions