Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • You are only sending one byte from 0 to 255. Read the manual. developer.android.com/reference/java/io/… Commented Aug 30, 2019 at 10:39
  • Ok. I see you´re right! Can you help me parse that int angle into an byte b [ ] so I can use the public void write(byte b[]) throws IOException { write(b, 0, b.length); } Commented Aug 30, 2019 at 10:42
  • You can't just throw data randomly at a serial connection. You need to have some kind of format so the receiver knows what byte is what. Commented Aug 30, 2019 at 10:43
  • Hm. I mean the format is recognized well on Serial.read() Commented Aug 30, 2019 at 10:46