Arduino-Library
Arduino-Library copied to clipboard
Arduino data not showing on Android App
Hi, it works sending data to the Arduino but when i want to show the data from the Arduino on a (textView for example) just doesn't show anything. I would appreciate your help :)
You need to add a \n to the end of the message when sending it from the Arduino.
This is my Arduino and Java code for sending /reciving, still not showing anything, maybe i'm doing something wrong
First, on Arduino use Serial.println instead of Serial.print. Also you should read a whole line before sending it. Right now you send every character separately, and when you receive the character on Android you overwrite the TextView content with it. Log the results on Android to make sure you are receiving the characters.