felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.81k stars 590 forks source link

How can I send zero byte? #176

Closed kdbcz closed 5 years ago

kdbcz commented 5 years ago

How can I send byte which has zero value? I can send without problem this three bytes: "45, 2, 63", but if I want to send this three bytes: "45, 0, 63", it send only the first byte"45". Is it possible to send somehow zero?

felHR85 commented 5 years ago

something like write(new byte[]{0x00}) ??

kdbcz commented 5 years ago

Yes, it is working, I tried to send it from a string and that is way not worked.