蓝牙打印16进制是怎么样的原理,怎么打印?
有没有DEMO?
function buf2hex(buffer) { // buffer is an ArrayBuffer return Array.prototype.map.call(new Uint8Array(buffer), x => ('00' + x.toString(16)).slice(-2)).join('');}