• Glad you got it working! ble_simple_uart will always disconnect BLE - it's just there to have something super simple to use.

    If you look at https://www.espruino.com/BLE+UART#receiving-evaluating there are some other examples though. Probably most useful is:

    NRF.requestDevice({ filters: [{ id: feather }] }).then(function(device) {
      return require("ble_uart").connect(device);
    }).then(function(uart) {
      uart.on('data', function(d) { print("Got:"+JSON.stringify(d)); });
      uart.write("testing!"); // .then(...)
      setTimeout(function() {
        uart.disconnect();
        console.log("Disconnected");
      }, 20000); // disconnect after 20s
    });
    
  • Thank you so much for all of your support on this! I've been making further progress in other areas and trying to get the arduino board and the puck to talk to each other. What I can't seem to figure out - after looking at the tutorials and digging through the forums is how to receive a ble_art update from the arduino board. I have seen the "eval" function and I've seen the examples with the web and python implementations - but how do those get adapted for the puck? sorry, I have a feeling this is a very basic question, but I can't seem to find the right direction.

About

Avatar for Gordon @Gordon started