Avatar for sammachin


Member since Nov 2016 • Last active Aug 2019
  • 7 conversations

Most recent activity

  • in General
    Avatar for sammachin

    thanks @Robin thats what I was looking for!

  • in General
    Avatar for sammachin

    I've done a dumb thing and realised that the only working copy of some code I have is runnng on a puck, somehow I forgot to save the backup.

    Is there any way to get the REPL to print out the current code thats on the device, I tried pocking at the Storage functions but I get an error "Storage" is not defined

  • in Puck.js, Pixl.js and MDBT42
    Avatar for sammachin

    I have a pixl that currently advertises a custom service and characteristic which a puck can then discover connect to and write to.
    I would like to replicate this with webbluetooth so that the puck can control a browser app instead of the pixl, is that possible? obviously doing something on the page instead of turning on the LED
    Below is the code on my pixl.

      "60970001-dddd-49b8-acea-2b7f5d2660dd": {
        "60970002-dddd-49b8-acea-2b7f5d2660dd": {
          value : [0],
          maxLen : 1,
          writable : true,
          onWrite : function(evt) {
            digitalWrite(LED, evt.data[0]);
            digitalWrite(D13, evt.data[0]);
    }, { uart : true });
    // On disconnect
    NRF.on('disconnect', function() {
    // Change name 
    NRF.setAdvertising({}, {name:"BLEPTT"});6
  • in Puck.js, Pixl.js and MDBT42
    Avatar for sammachin

    Tired the 5 red flash reset and rebooting the mac, still the same issue!

    All very strange, tried with a brand new puck and that seems to work fine?!?!?!

    I'm gonna try and get along to JSOxford next week if I can so I'll try and remember to bring it with me, perhaps you can spot something thats odd with it I'm missing

  • in Puck.js, Pixl.js and MDBT42
    Avatar for sammachin

    its certainly possible I had been messing around with bluetooth on the puck previously but I would have imaginged a hard reset and a firmware update via DFU would get rid of any of that?

    also it works on the macbook which has me even more lost!

    Any suggestions on where in the mac to reset the pairing, none of the espruino devices show up in the regular bluetooth settings app

  • in Puck.js, Pixl.js and MDBT42
    Avatar for sammachin

    Got a slightly weird problem, dig out one of my pucks as I have a project idea, trying to connect it to my iMac to use the web IDE but when I scan for webbluetooth devices it sees the same puck name twice (with different ?MAC? addresses?
    No matter which one I select it fails to connect
    I've tried updating the fw to 2.04 and doing a hard reset neither of which helped.
    I can connect my pixl to the iMac fine
    I can connect this puck to my Macbook fine (it only shows up once there)
    See screenshots for the details,

    I'm a bit lost!