Hi everyone 
I have this code to take desired segment of data from long string
The command prints separately each char and I want to save it as one integer.
So: Transmitter sends data like that %S,123,A,456,B,789,C. Code reads only numbers and prints on LCD. Let's take 123: It prints 1 then 2 and then 3 on LCD but I want to save it as one integer 1 2 3 = 123. How can I do that?
Fragment of this code(Printing on LCD)
/////
t=0;
while(data[t]!=',')
{
print(data[t]);
t++;
}
/////
Thanks a lot
DADA
I have this code to take desired segment of data from long string
The command prints separately each char and I want to save it as one integer.
So: Transmitter sends data like that %S,123,A,456,B,789,C. Code reads only numbers and prints on LCD. Let's take 123: It prints 1 then 2 and then 3 on LCD but I want to save it as one integer 1 2 3 = 123. How can I do that?
Fragment of this code(Printing on LCD)
/////
t=0;
while(data[t]!=',')
{
print(data[t]);
t++;
}
/////
Thanks a lot
DADA