coppino/src/coppino.cpp

20 lines
356 B
C++

#include "coppino.h"
namespace coppino {
void handler() {
int r;
while ((r = slip::recv((char*)&ipv6::packetin, LEN)) != -1) {
ipv6::packetin.doAction();
}
}
void hexdump(const char* pointer, int len) {
for (int i = 0; i < len; ++i) {
Serial.print(pointer[i] & 0xff, HEX);
Serial.print('.');
}
}
}