Open smedapati opened 5 years ago
install base64-js
yarn add base64-js
and
import base64 from "base64-js";
async function print(){
var cutpaper = [0x1d, 0x56, 0x41, 0x00];
var cutPaperStr = base64.fromByteArray(cutpaper);
try{
...
await SunmiInnerPrinter.sendRAWData(cutPaperStr);
}
}
Please note that not all printers have a cutting ability
How do i make the knife cut the receipt in the end?