I received this string from printer supplier. I am using write(data) method of [https://ionicframework.com/docs/native/bluetooth-serial/](http://bluetooth plugin). How to pass this whole as a single string.
<xpml><page quantity='0' pitch='101.6 mm'></xpml>
SIZE 99.1 mm, 101.6 mm
GAP 3 mm, 0 mm
DIRECTION 0,0
REFERENCE 0,0
OFFSET 0 mm
SET PEEL OFF
SET CUTTER OFF
SET PARTIAL_CUTTER OFF
<xpml>
</page>
</xpml>
<xpml><page quantity='1' pitch='101.6 mm'></xpml>
SET TEAR ON
ON
CLS
CODEPAGE 1252
TEXT 682,1059,"0",180,28,28,"MTN"
TEXT 936,892,"0",180,22,16,"MTN Technologies"
BARCODE 939,674,"128M",150,0,180,9,18,"!10512345678"
TEXT 684,515,"0",180,12,12,"12345678"
BARCODE 988,374,"128M",150,0,180,8,16,"!104MTN123"
TEXT 669,215,"0",180,12,12,"MTN123"
PRINT 1,1
<xpml></page></xpml><xpml><end/></xpml>
currently i am using this small code and its working. i want to add more text and qr code on single print.this code is printing value qr code.
let printData="SIZE 4,4\nGAP 0.12,0\nCLS\nQRCODE 10,10,H,4,A,0,\""+this.value+"\"\nPRINT 1,1\n0d0a"
let xyz=this.connectBT(address).subscribe(data=>{
this.btSerial.write(printData).then(dataz=>{
console.log("WRITE SUCCESS",dataz);
let mno=this.alertCtrl.create({
title:"Print SUCCESS!",
buttons:['Dismiss']
});
mno.present();
xyz.unsubscribe();
},errx=>{
console.log("WRITE FAILED",errx);
let mno=this.alertCtrl.create({
title:"ERROR "+errx,
buttons:['Dismiss']
});
mno.present();
});
},err=>{
console.log("CONNECTION ERROR",err);
let mno=this.alertCtrl.create({
title:"ERROR "+err,
buttons:['Dismiss']
});
mno.present();
});
}```