#ifndef SerialCommand_h #define SerialCommand_h #include class SerialCommand { public: SerialCommand(); SerialCommand(char *buf, int bufLen, char eoc, Stream* stream); void init(char *buf, int bufLen, char eoc, Stream* stream); int checkSerial(void); void sendCommand(char *); int overflow; protected: Stream* _stream; char *_buf; int _bufIdx; int _bufLen; char _eoc; // EndOfCommand char bool _initialized; }; #endif