I have two Arduinos connected through Bluetooth. One sends a string of data similar to
506:507:1\r\n. The data can vary similar to
0:1000:0\r\n. I already have functions to break that string down into three variables. I send it from one Arduino over Bluetooth and the second Arduino receives it through
Serial. The only problem is that the second Arduino receives this:
5 0 6 : 5 0 7 : 1 "\n"
At the end it adds a space at the end (
"\n") How can I parse this data back into a string similar to
506:507:1\r\n that can still vary in length?