An Arduino Library that facilitates packet-based serial communication using COBS or SLIP encoding.
PacketSerial is an small, efficient, library that allows Arduinos to send and receive serial data packets (with COBS, SLIP or a user-defined encoding) that include bytes of any value (0 - 255). A packet is simply an array of bytes.
If you're asking Why do I need this?, read the background introduction page. If you're ready to get started, check out the getting started page. You can also learn a lot by reading through the examples. Finally, if you're interested in learning more about how the code works, read the comments in the source code and check out the API documentation.
If you're looking for help, read the support page.
- Arduino IDE (version 1.5+)
This project has been used successfully with openFrameworks using the ofxSerial addon. In particular, see the ofx::IO::PacketSerial
object. Additionally this project has been used with Python using the PySerial package. In particular, check out the COBS (see this discussion) and SLIP packages.
Ultimately, any library that correctly implements a COBS or SLIP encoding scheme should be compatible with this project.
Continuous integration tests are carried out on a variety of common Arduino platforms. See this script for a list.
This project is licensed under the MIT License.
https://github.com/bakercp/PacketSerial
If you'd like to contribute to this project, please check out the Code of Conduct and the contributing guide.
This project uses Semantic Versioning. You can check out recent changes in the changelog.