如何使用颤振将QR Code打印到蓝牙打印机?

时间:2019-05-07 04:35:55

标签: android flutter

如何使用Flutter将QR Code打印到蓝牙打印机? 我正在使用https://pub.dev/packages/flutter_bluetooth_serial这个软件包,但是我不知道如何从我的唯一ID打印二维码

我尝试了方法writeBytes,但是我不知道从我唯一的ID字符串转换为要打印的二维码

String foo = 'TEST';
List<int> bytes = utf8.encode(foo);
bluetooth.writeBytes(bytes);

我不知道从字符串转换为qrcode字节再转换为蓝牙打印机

0 个答案:

没有答案