I'm using Serial.readString() to get the data sent from mobile over Bluetooth. It works fine when I send data with a bit delay between sending times. But when I send the data continuosly in a bit faster delay then the buffer will store all as a long string and then return that long string to Serial.readString().
Ex: Sending
10
20
30
40
Receiving
10203040
I want to receive seperate values corresponding to the multiple sending times. Event it's really fast.
10
20
30
40
If that can not be achived, how can I get the latest value only (override all previous values in the buffer). In this case is 40