diff --git a/include/protocols/MeterChinaDC.hpp b/include/protocols/MeterChinaDC.hpp new file mode 100644 index 00000000..98422ba5 --- /dev/null +++ b/include/protocols/MeterChinaDC.hpp @@ -0,0 +1,91 @@ +/** + * Plaintext protocol according to DIN EN 62056-21 + * + * This protocol uses OBIS to identify the readout data + * And is also sometimes called "D0" + * + * @package vzlogger + * @copyright Copyright (c) 2011, The volkszaehler.org project + * @license http://www.gnu.org/licenses/gpl.txt GNU Public License + * @author Steffen Vogel + */ +/* + * This file is part of volkzaehler.org + * + * volkzaehler.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * volkzaehler.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with volkszaehler.org. If not, see . + */ +// RW: added ack +#ifndef _D0_H_ +#define _D0_H_ + +#define D0_BUFFER_LENGTH 1024 + +#include + +#include + +class MeterD0 : public vz::protocol::Protocol { + public: + MeterD0(std::list