import { BluetoothSerial } from '@awesome-cordova-plugins/bluetooth-serial/ngx';
constructor(private bluetoothSerial: BluetoothSerial) { }
this.bluetoothSerial.write('hello world').then(success, failure);
this.bluetoothSerial.write([186, 220, 222]).then(success, failure);
var data = new Uint8Array(4);
data[0] = 0x41;
data[1] = 0x42;
data[2] = 0x43;
data[3] = 0x44;
this.bluetoothSerial.write(data).then(success, failure);
this.bluetoothSerial.write(data.buffer).then(success, failure);