:receipt: TP服务器 Thermal Printer服务器和MQTT客户端在escpos库周围提供了类似标记的api接口。 HTTP请求示例如下所示: POST /job HTTP/1.1 Host: 192.168.1.23:3000 Content-Type: text/plain font " a " size " 2 " " 2 " align " ct " style " bu " text " Hi! " size " 0 " " 0 " text " A little test print for you! " text " Have a barcode " barcode " 1234567 " " EAN8 " cut 可以在找到更多命令。 :female_sign:‍:female_sign:运行服务器 要启动服务器,可以全局安装或使用npx npm install -g @h0me/tp-server tp-s