only on ESP32-S3-USB. this fiddles with the available hardware UARTs to make it possible to use a third Victron MPPT. if three MPPTs are defined int the pin mapping, you will not be able to use the SmartShunt and JK BMS battery interfaces. note that using a second MPPT will also conflict with the SDM power meter, and that conflict is not detected, yet.
21 lines
511 B
C++
21 lines
511 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, uint8_t hwSerialPort);
|
|
|
|
using data_t = veShuntStruct;
|
|
|
|
private:
|
|
bool processTextDataDerived(std::string const& name, std::string const& value) final;
|
|
};
|
|
|
|
extern VeDirectShuntController VeDirectShunt;
|