lib/transport/scriptable-serial-terminal.js
async function write(data){
    await _serialport.write(data);
    await _serialport.drain();
}
async function write(data){
    await _serialport.write(data);
    await _serialport.drain();
}
async function write ( data ) { await _serialport . write ( data ) ; await _serialport . drain ( ) ; }
write data to serial port and wait for transmission complete
write data to serial port and wait for transmission complete