Felipe Herranz
Felipe Herranz
Hi, In some devices data is split into more than callback because of the usb to serial chipset. You can onvercome this using two approaches: - Append the received data...
It is the last thing I added so it would be nice to receive your feedback about if the sync version works correctly. What USB-Serial converter does your arduino use?
Java arrays are set to 0 by default so probably you are receiving less than 13 bytes when the timeout raises. Are you using UsbSerial 4.1.1 because that release solved...
Set timeout to 0 :)
@sivaprashanth Email sent
Hi @efreibe [I would use the synchronous api in your case](https://github.com/felHR85/UsbSerial/wiki/5.-Synchronous-api)
@efreibe Like a JS promise with "then" added at the end to handle the result of the operation? I guess it could be added because it is a nice idea.
@W1il What kind of error is throwing?
Hi @spleenware What kind of device is it?
Hi @sagar8469 You can use syncRead perfectly fine. [Also please check this](https://github.com/felHR85/AndroidModbus) I am porting j2mod java library but need some testing by users before being ready for release.