ble_framed_protocol 0.1.0
ble_framed_protocol: ^0.1.0 copied to clipboard
Encode and decode XOR-checksummed framed-byte protocols common to industrial BLE devices (e-locks, GPS trackers, Nordic NUS clones). Configurable header and trailer bytes; pure Dart, no Flutter dependency.
Changelog #
0.1.0 #
- Initial release.
Framevalue type (cmdId + payload).FramedProtocolencoder/decoder with configurable header and trailer bytes, XOR checksum, and 16-bit big-endian payload length.FramedProtocol.standardconstant for the default[0xAA, 0xBB] / [0x0D, 0x0A]byte magic.verifyChecksumzero-allocation validator.