How I can separate values from string into values? I am using an SD card module and 328p ATMEGA. I am able to read an especific string. But i want to separate the string into different variables.ç
EXAMPLE:
21:03:33 , 28
When 21:03:33 is TIME and 28 the temperature. I want to have two different varibles like:
Current Time = (and the time the temperature was recorded "21:03:33")
Temp = (the temperature "28")
If the string is always the same "XX:XX:XX , XX", then temperature is always at pos 11 of the string. And hour is always at pos 0, minute is always at pos 3, second is always at pos 6...
Do you need to access the values, or just print the data like below? Splitting the string in half is much easier than converting the strings to values:
Current Time = (and the time the temperature was recorded "21:03:33")
Temp = (the temperature "28")
Also then, what is the point of converting the data to human readable format, and converting it back again (which is apparently giving you some trouble)?