//A file to support the main program on using the protocol #pragma once enum State { Idle = 0, Abortable, Unabortable, Done, Failed, Unknown; } /* struct Data { byte length = 0; byte type = 'h'; String data; Data(byte l, byte t, const char* d) : type(t), data(&d) { for(; d[length] != 0; length++) { } } Data(byte t) : type(t), data('\0') {}; }; */