beaglebone/main.js
// Create the uart, and return it in the callback
Create the uart, and return it in the callback
Create the uart and return it in the callback
function makeUart(callback) {
  var uart = new Uart('/dev/ttyO4', {
    baudrate: 115200,
    parser: serialport.parsers.readline("\n")
  });
  uart.once("open", function () {
    log.info('UART Open');
    callback(null, uart)
  });
}
function makeUart ( callback ) { var uart = new Uart ( '/dev/ttyO4' , { baudrate : 115200 , parser : serialport . parsers . readline ( "\n" ) } ) ; uart . once ( "open" , function ( ) { log . info ( 'UART Open' ) ; callback ( null , uart ) } ) ; }
Create the uart, and return it in the callback
Create the uart and return it in the callback