Arduino KVComm
master
Key-Value pair communication library for Arduino
|
Go to the documentation of this file.
3 template <
class Sender>
21 sent += this->sender(
ESC);
31 sent += this->sender(
ESC);
37 default: sent += this->sender(*data);
46 template <
class Sender,
class CRC>
48 this->crc.process_bytes(data, len);
49 return sender.write(data, len);
size_t write(const uint8_t *data, size_t len)
Write some data as the body of a packet.
SLIP special character codes.
const static uint8_t ESC_END
ESC ESC_END means END data byte.
const static uint8_t ESC_ESC
ESC ESC_ESC means ESC data byte.
size_t write(const uint8_t *data, size_t len)
Write some data as the body of a packet.
const static uint8_t ESC
indicates byte stuffing
const static uint8_t END
indicates end of packet