Messenger is a new library for Arduino. It is a "toolkit" that facilitates the processing of ASCII messages. Messenger processes characters until it receives a carriage return (CR). It then considers the message complete and available. The message is split into many elements as defined by a separator. The default separator is the space character, but can be any character other than NULL, LF or CR.
Messenger is the new
SimpleMessageSystem. SimpleMessageSystem was nice, but not simple enough, so I wanted to switch to
Firmata, but when I found out Firmata took at least half of my atmega168's memory, I went back to the drawing board and designed Messenger.
Please note that Messenger only provides methods for incoming messages. The internal Serial.print() functions work just fine for outgoing messages.
You can find Messenger
here.