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.
16 lines
318 B
C++
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;
|
|
};
|