I finally managed to send some data to the printer via ESC/POS. But the code is not being executed. It is coming out as code.
Here's the log. Does it look correct?
2019-10-16 22:08:28,947 [DEBUG] Message: {"call":"print","promise":{},"params":{"printer":{"name":"POS-80"},"options":{"colorType":"color","copies":1,"density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":0,"orientation":null,"paperThickness":null,"printerTray":null,"rasterize":true,"rotation":0,"scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":null,"endOfDoc":null,"perSpool":1},"data":["'\\x1B' + '\\x40', // init\n '\\x1B' + '\\x61' + '\\x31', // center align\n 'United Marvel' + '\\x0A',\n '\\x0A', // line break\n '\\x1B' + '\\x61' + '\\x31', // center align\n Business Reg: 233312 (SST No:55553)' + '\\x0A',\n '\\x0A', // line break\n '------------------------------------------' + '\\x0A',\n\n\t'Description' + 'Qty' + 'Total' + '\\x0A',\n\t\t\t'Lay's Classic' + '1' + '12.50' + '\\x0A',\n\t\t\t'Cappucino' + '1' + '6.50' + '\\x0A',\n\t\t\t'烧鸭 Roast Duck' + '1' + '7.50' + '\\x0A',\n\t\t'\\x0A',\n\t'Item Amount' + 'MYR' + '26.50' + '\\x0A',\n\t'\\x0A',\n '------------------------------------------' + '\\x0A',\n\n\t'Service Tax 6%' + 'MYR' + '1.59' + '\\x0A',\n\n\t'Service Charge 0%' + 'MYR' + '0.00' + '\\x0A',\n\n\t'Rounding' + 'MYR' + '0.01' + '\\x0A',\n\n\t'Total' + 'MYR' + '28.10' + '\\x0A',\n\t\n\t'More Payment - 0.00' + '\\x0A',\n\t'Points - Pts 0.00' + '\\x0A',\n\n\t'Cash Received - MYR\n\t\t\t0.00' + '\\x0A',\n\n\t'Credit Card - MYR' + '0.00' + '\\x0A',\n\n\t'Change MYR' + '0.00' + '\\x0A',\n\n\t'Credit Card No.\tXXXX-XXXX-XXXX-' + '\\x0A',\n\t'\\x0A',\n \t'------------------------------------------' + '\\x0A',\n\t'\\x0A',\n\n\t<!-- This is for hardcopy instance of the receipt -->\n\t'Terminal ID 1050000000047' + '\\x0A',\n\t'Staff Name Tan' + '\\x0A',\n\t'Staff ID 1020000000077' +'\\x0A',\n\t'Date 16Oct19 22:08:28' +'\\x0A',\n\t\t\t'Take Away No. 003' + '\\x0A',\n\t\t'Pax 1' + '\\x0A',\n\n\t'\\x0A',\n \t'------------------------------------------' + '\\x0A',\n\t'\\x0A',\n '\\x1B' + '\\x61' + '\\x31', // center align\n\t'1060000450000000003' +'\\x0A',\n '\\x1B' + '\\x61' + '\\x31', // center align\n\t'Thank You!' + '\\x0A',\n"]},"timestamp":1571234908937,"uid":"lqtusw","position":{"x":960,"y":540}}