You are reading a single comment by @hansamann and its replies. Click here to read the full conversation.
  • Hi all,

    I've now setup a rpi3 with EspruinoHub. Instead of using the minimal raspbian image as before, I chose the full image and pretty much followed all instructions. Instead of installing node the way it is described in the tutorial, I went with the node version mananger, which worked very nicely. Now the issues:

    • if there is no puck in reach or no ble devices, the hub will stop after a few seconds. What is the reason for this? I can well imagine that sometimes no devices are in reach, I would want the hub to stay active all the time and wait for a device to appear.
    • I've used the sample code given in the tutorial, but I get some issues:

      NRF.requestDevice({ filters: [{ services: ['1823'] }] }).then(function(device) {
      require("ble_http").httpRequest(device, "", function(d) {

    Once I connect to my (whitelisted) puck and upload the code with the Espruino IDE, I get this:

    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
     1v91 Copyright 2016 G.Williams
    Uncaught Error: Unhandled promise rejection: Disconnected.

    In the EspruinoHub console, I see that a device connected, but after this short intermezzo and no other significant error message (almost nothing, I see that my puck got scanned and it's RSSI), the hub then also terminates. Any idea?


Avatar for hansamann @hansamann started