Arduino-Library icon indicating copy to clipboard operation
Arduino-Library copied to clipboard

Arduino data not showing on Android App

Open cosminciorba opened this issue 4 years ago • 3 comments

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 :)

cosminciorba avatar Mar 01 '21 14:03 cosminciorba

You need to add a \n to the end of the message when sending it from the Arduino.

omaraflak avatar Mar 01 '21 15:03 omaraflak

java1 java2 This is my Arduino and Java code for sending /reciving, still not showing anything, maybe i'm doing something wrong

cosminciorba avatar Mar 01 '21 16:03 cosminciorba

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.

omaraflak avatar Mar 01 '21 16:03 omaraflak