SLIP-Receive
Receives SLIP packages over Serial.
- Boards:
- AVR, AVR USB, Nano Every, Nano 33, Due, Teensy 3.x, ESP8266, ESP32
- See also
- SLIP-Send.ino
Written by PieterP, 2020-02-06
https://github.com/tttapa/Arduino-KVComm
uint8_t slipbuffer[256];
Serial,
slipbuffer,
};
void setup() {
Serial.begin(115200);
}
void loop() {
if (packetSize > 0) {
Serial.println("Received packet: ");
Serial.write(slipbuffer, packetSize);
Serial.println();
Serial.println(slip.
wasTruncated() ?
"Packet was truncated\n" :
"");
}
}