|
PacketSerial
An Arduino Library that facilitates packet-based serial communication using COBS or SLIP encoding.
|
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
const Stream* getStream() const and Stream* getStream() methods. Thanks @orgicus.void begin(unsigned long speed, size_t port) function.void begin(Stream* stream) function.while(!SerialX) line when CORE_TEENSY is defined. This was leading to unexpected behavior where programs would not start until a serial connection was opened.bool overflow() const to check for a receive buffer overflow.void onPacketReceived(const void* sender, const uint8_t* buffer, size_t size). Either functions can be set. Calling setPacketHandler() will always remove all previous function pointers.void begin(Stream* stream) function. Use void setStream(Stream* stream) instead.PacketSerial_::begin(unsigned long speed, uint8_t config, size_t port).void PacketSerial_::begin(unsigned long speed, uint8_t config, size_t port) method to avoid confusion with the standard Serial.begin(unsigned long speed, uint8_t config).void begin(unsigned long speed, size_t port) method because it could be confused with the standard Serial.begin(unsigned long speed, uint8_t config) method.const qualifier to the send() method.