Bha*_*sai 5 android bluetooth outputstream bluetooth-profile bluetooth-socket
我正在向蓝牙插座发送一个字节数组,我从蓝牙打印机得到响应,但我没有得到正确的图像数据发送确认.
我outputstream按以下方式编写字节数组:
byte[] queryData = new byte[]{
0x1B, 0x2A, 0x43, 0x41,
0x00, 0x00, 0x00, 0x00,
0x01, 0x27, 0x5E,
0x01, 0x00, 0x00, 0x00, 0x00
};
outputStream.write(queryData);
outputStream.flush();
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以写二进制数据outputstream吗?
我被卡住并打开了任何建议.
| 归档时间: |
|
| 查看次数: |
368 次 |
| 最近记录: |