OpenDTU-old/lib/VeDirectFrameHandler/VeDirectShuntController.h
Bernhard Kirchen b299b9dc6c VE.Direct: simplify access to data
hand out const& to the data structs. this is possible now that this
struct is "stable", i.e., not reset regularly.
2024-04-02 21:05:59 +02:00

20 lines
481 B
C++

#pragma once
#include <Arduino.h>
#include "VeDirectData.h"
#include "VeDirectFrameHandler.h"
class VeDirectShuntController : public VeDirectFrameHandler<veShuntStruct> {
public:
VeDirectShuntController() = default;
void init(int8_t rx, int8_t tx, Print* msgOut, bool verboseLogging);
using data_t = veShuntStruct;
private:
bool processTextDataDerived(std::string const& name, std::string const& value) final;
};
extern VeDirectShuntController VeDirectShunt;