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

    You should be able to do:

    nrf.sendCommand("do_measurement()", function (myValue) {
      console.log(myValue);
    });
    

    You need the callback because the value won't be returned immediately - it'll only happen after a fraction of a second...

About

Avatar for Gordon @Gordon started