Arduino KVComm
master
Key-Value pair communication library for Arduino
|
Go to the documentation of this file.
8 sent +=
write(data, len);
26 while (
stream->available()) {
34 #if ORIGINAL_RFC1055_SOURCE
46 void send_packet(
char *p,
int len) {
78 default: send_char(*p);
94 int recv_packet(
char *p,
int len) {
size_t beginPacket()
Start a packet.
size_t writePacket(const uint8_t *data, size_t len)
Sends a packet.
Class for sending SLIP packets.
size_t write(const uint8_t *data, size_t len)
Write some data as the body of a packet.
size_t endPacket()
Finish the packet.
const static uint8_t ESC_END
ESC ESC_END means END data byte.
size_t parse(uint8_t c, Callback callback)
Parse the given byte, and call the callback for each 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
size_t endPacket()
Finish the packet.
size_t beginPacket()
Start a packet.
const static uint8_t END
indicates end of packet
size_t readPacket()
Receives a packet into the read buffer.