• In the example code I gave I'm just using the standard 'UART' bluetooth mode, so on the RX side you'd just use this: http://www.espruino.com/BLE+UART#receivi­ng-evaluating

    NRF.requestDevice({ filters: [{ namePrefix: 'MDBT42Q' }] }).then(function(device) {
      return require("ble_uart").connect(device);
    }).then(function(uart) {
      uart.on('data', function(d) { 
        // do something with the data 
        // maybe: Serial1.write(d);
      });
    });
    

    On the PC side it's not that different, except you have to be able to access Bluetooth LE. Some code examples are at https://www.espruino.com/Interfacing#blu­etooth-le

    I ask because the PC has more resources and the data transfer rate may actually be faster between one MDBT42Q and a PC than it is between two MDBT42Q. You'd just have to do some testing and see if it was good enough for your requirements.

About

Avatar for Gordon @Gordon started