I'm fairly new to arduino programming and C/C++. I would like to read a .csv file element wise, and send each element via. a nRF24L01 tranceiver to a raspberry pi. Right now I'm able to read the .csv file with Serial.write(<file>.read())
. I was wondering if there's a way to read each element one at a time, if so how would i do that?
My thoughts (Pseudo code-ish):
loop through every element in .csv file {
save the current element to X.
send X to raspberry pi (I already have a function for sending)
}
I hope someone can help. Thanks in advance.