蓝牙wx.writeBLECharacteristicValue能发送gb2312指令给单片机?
const val = gb.encodeToGb2312('测试')
const num = that.data.value
console.log(val);
var buffer = util.stringToBytes('+$CCTXA,' + num + ',1,2,A4' + val + '*7C\n');
console.log(buffer);
wx.writeBLECharacteristicValue({
deviceId: app.globalData.deviceId,
serviceId: app.globalData.serviceId,
characteristicId: '0000FFE2-0000-1000-8000-00805F9B34FB',
value: buffer,
success: function () {},
})