Avatar for maby

maby

Member since Feb 2021 • Last active Mar 2021
  • 2 conversations
  • 4 comments

My wife and I design and build IoT solutions to assist elderly and infirm people in their everyday lives.

Most recent activity

    • 1 comment
    • 42 views
  • in Bangle.js
    Avatar for maby

    Hi all, I need to program a Bangle (and, possibly, Puck) up for data capture and subsequent upload to a server. I have a lash-up that broadly works provided the Espruino device is connected to a PC over Bluetooth. If it has lost the connection, I need it to capture data and subsequently upload the next time it can connect. I can implement this from the PC with a wait-loop - very ugly - but I would prefer it to be event driven. I've been looking for bluetooth events in Espruino that will trigger if a device comes in range - but can't see anything - does anyone have any suggestions?

    TIA

    Martin

    • 3 comments
    • 111 views
  • in General
    Avatar for maby

    Hello Gordon and thanks for that. I had been assuming that I would have to do something along those lines if I hand carve it myself - was just hoping that someone else had already done the grunt work! Oh, well, back to the reference manual. I tried what you suggested and got errors out of espruino about no ports found - checked the version number and the version installed is ancient - need to update it!

    Martin

  • in General
    Avatar for maby

    Hi all. While the Web IDE is quite impressive, I really would like to use Jetbrains WebStorm which is a professional grade Javascript IDE. It supports plugins to implement things like interfaces to external devices and I'm sure it is possible to create one that makes use of the espruino CLI application to do the upload and run the code on the Puck or Bangle. But I'm not into reinventing wheels - got a project to complete and a deadline - so I just wondered if anyone had any experience of getting something like this working?

    TIA
    Martin

Actions