mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.82k stars 1.58k forks source link

Send letters to Arduino Uno #481

Closed Johndeleon closed 1 year ago

Johndeleon commented 1 year ago

My Arduino code is expecting L, F, B, or R as inputs. I tested it with the Simple USB Terminal app on GPlay and it works. While coding my app, I noticed that it sends byte array type. How should I make/how should I send the data I'm sending so that the arduino device will receive it as a letter.

kai-morich commented 1 year ago

please check standard Java documentation https://docs.oracle.com/javase/tutorial/i18n/text/string.html on byte vs. String