• Very happy with puck.js. I'm thinking about what I can do with it - keen to play with hue lights and sonos - with a Mac making http calls when it gets data from the puck.

    How do I reliably establish a connection from the command line?

    I've done npm install -g espruino and have noble installed, so I'm trying espruino -p cd:47:aa:41:44:2d

    Once in a while, this works and I can talk to the puck from my command line. Most often, though, it tries for 1.5 sec (this time interval?) and then says "Unable to connect!".

    I'm new to BLE but my understanding is that my puck is advertising itself every so often (?) and the 1.5 sec isn't long enough for my computer to "spot" it and establish a connection?

    I've reset the puck with the button held down and made sure my Mac has "forgotten" it after previously trying some HID stuff. Is this expected behaviour? It makes connecting to the thing very hit-and-miss.

About

Avatar for mozz100 @mozz100 started