Arduino Not Sending Integers Properly
I am trying to send integers 0 through 10 from my Arduino Uno to my Android device. However, the Arduino is not sending the integers separately, but rather it is sending it as a cl
Solution 1:
It seems that the serial communication is working as stream (not datagram) and isn't keeping any data boundary.
Therefore, it seems you should add data separator (for example: newline) to your sending data and process it in the receiver (for example: use BufferedReader
) to keep the data boundary.
Post a Comment for "Arduino Not Sending Integers Properly"