Software serial for development boards. Added a few extra boards

This commit is contained in:
Gunnar Skjold
2020-02-07 17:27:58 +01:00
parent 3a7f6078f4
commit deb2148e9a
8 changed files with 148 additions and 68 deletions

View File

@@ -18,8 +18,8 @@ public:
bool compensateFor09HeaderBug = false;
HanReader();
void setup(HardwareSerial *hanPort);
void setup(HardwareSerial *hanPort, Stream *debugPort);
void setup(Stream *hanPort);
void setup(Stream *hanPort, Stream *debugPort);
bool read();
bool read(byte data);
int getListSize();
@@ -30,7 +30,7 @@ public:
private:
Stream *debug;
HardwareSerial *han;
Stream *han;
byte buffer[512];
int bytesRead;
DlmsReader reader;