So I keep reading data from serial, it can be "ON, "OFF" or "REBOOT", and this data is received continually.
Each reading takes different action, this is ok but I want ask something,
If I get "ON" over serial, I turn something ON,in the next loop if I read ON again I must skip the "ON" action until I get data different than "ON" over serial.
I keep reading my tweet feed, and I can reboot, turn ON or OFF a computer remotely, but as I keep reading twitter every 60 seconds, if I get the same tweet it's going to perform the action everytime.