The Messaging library implements a communication protocol that is similar to Serialization found in frameworks such as .Net. It allows developers to convert simple data structures into a text format that is suitable for transmission over serial communication. This ensures interoperability between different platforms, such as Arduino to another MCU, or Arduino to Windows/Mac/Linux/Android applications. The latter platforms will require their own implementation of the MessageListener class and supporting abstract classes.
In summary, use the Messaging library to implement event driven (duplex) communication over serial between two Arduinos.
The Messaging library depends on the following libraries:
- StringLib – efficient string building and reading
Watch the video below that demonstrates communication between an Wemos D1 mini acting as a web server, and an Arduino Uno animating addressable RGB LED strip lights.
The Messaging library is covered in detail with examples in the ebook Arduino Web Development: Pushing the Limits.

