writeBuffer=new byte []{ (byte) 0xAA, 0x55, 0x01, 0x33, 0x34, 0x0D,
0x0A};
try {
mLen = uartInterface_340.WriteData(writeBuffer,writeBuffer.length);
} catch (IOException e1) {
// TODO Auto-generated catch block
Toast.makeText(this, "WriteData Error1", Toast.LENGTH_SHORT).show();
e1.printStackTrace();
}
我这样写可是长度不对不知道怎么写网上查了很多 头疼求教
方便将报错信息发出来么,不太清楚你这样会有什么样的错误。