Go Down

Topic: Sending text to the arduino (Read 838 times) previous topic - next topic


Hello, I am pretty new to the arduino, so maybe this is really simple, but I want to make sure.

Im trying to make the arduino turn on a led when there is a specific update on a twitter account.

Right now I made it work when the update is just one character, but I am not able to make it work with more than that.

Is there a way to check the if statement vs the whole string on the serial.read? does the serial.read just reads the first byte?

Thanks in advance!

Mike Mc

Seria.read reads in one byte at a time. You will need to load those bytes into a buffer until you reach the end of your string, then process that buffer as a whole string/sentence accordingly.


Thanks a lot I will try that!

Go Up