Go Down

Topic: proble with saving data in sd cards (Read 193 times) previous topic - next topic

datskunchala

hai everyone i have been trying to save data from stm32f4 board to Arduino using uart communication and sd card (spi)  but I have a problem I am able to save data but it is not as same as the data received i,e I am sending characters but it is storing some constant values such as 17a/350/178 like that can you please help me to solve this
                                 thanks and sorry for my bad English

Lucario448

I'm guessing it's just a data type confusion. If you want to dump/log an input data stream "as it is", you have to use either write() or print() but with a char variable as the parameter.
If you use print() on non-char variables, a textual representation of their value is outputted, rather than their "raw" bytes.

Go Up