I am using BLE plugin to connect to printer (Model SEWOO LK-P400), I want just to send a “Hello World” test, the connect and disconnect part is ok, I wrote the WRITE function this way:
async print() {
let text = new TextEncoder().encode("HELLO_WORLD");
let value = text.buffer as ArrayBuffer;
await this.bluetoothProvider.print(this.deviceId, this.serviceUUID, this.characteristicUUID, value)
.then(response => {
console.log(response);
});
}
print(deviceId: string, serviceUUID: string, characteristicUUID: string, value: ArrayBuffer): any {
return this.ble.write(deviceId, serviceUUID, characteristicUUID, value);
}
it’s returning OK in console but not printing nothing.