OpenDTU-old/include/PowerMeterSerialSml.h
Bernhard Kirchen 6108d24795 powermeter refactor: introduce PowerMeterSml
this new class handles SML data. it uses the SML lib to decode values
and manages those. this de-duplicates code as the class is applicable
to all power meters that collect SML data.
2024-06-26 20:51:56 +02:00

16 lines
318 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "PowerMeterSml.h"
#include <SoftwareSerial.h>
class PowerMeterSerialSml : public PowerMeterSml {
public:
bool init() final;
void deinit() final;
void loop() final;
private:
std::unique_ptr<SoftwareSerial> _upSmlSerial = nullptr;
};