mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-22 10:41:21 +00:00
Cleanup
This commit is contained in:
parent
be569d1802
commit
606bac100a
@ -175,6 +175,14 @@ byte* DlmsReader::getBuffer() {
|
||||
return buffer + (3 + destinationAddressLength + sourceAddressLength + 2 + 1);
|
||||
}
|
||||
|
||||
byte* DlmsReader::getFullBuffer() {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
int DlmsReader::getFullBufferLength() {
|
||||
return dataLength;
|
||||
}
|
||||
|
||||
int DlmsReader::GetAddress(int addressPosition, byte* addressBuffer, int start, int length)
|
||||
{
|
||||
int addressBufferPos = start;
|
||||
|
||||
@ -20,6 +20,8 @@ class DlmsReader
|
||||
int GetRawData(byte *buffer, int start, int length);
|
||||
int getBytesRead();
|
||||
byte* getBuffer();
|
||||
byte* getFullBuffer();
|
||||
int getFullBufferLength();
|
||||
|
||||
protected:
|
||||
Crc16Class Crc16;
|
||||
|
||||
@ -40,7 +40,10 @@ bool HanReader::read(byte data) {
|
||||
if (debugger->isActive(RemoteDebug::INFO)) {
|
||||
printI("Got valid DLMS data (%d bytes)", bytesRead);
|
||||
if (debugger->isActive(RemoteDebug::DEBUG)) {
|
||||
debugPrint(buffer, 0, bytesRead);
|
||||
byte* full = reader.getFullBuffer();
|
||||
int size = reader.getFullBufferLength();
|
||||
printI("Full DLMS frame (%d bytes)", size);
|
||||
debugPrint(full, 0, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -6,15 +6,15 @@ float DnbCurrParser::getValue() {
|
||||
}
|
||||
|
||||
int DnbCurrParser::available() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DnbCurrParser::read() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int DnbCurrParser::peek() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void DnbCurrParser::flush() {
|
||||
|
||||
@ -18,15 +18,15 @@ float EntsoeA44Parser::getPoint(uint8_t position) {
|
||||
}
|
||||
|
||||
int EntsoeA44Parser::available() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int EntsoeA44Parser::read() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int EntsoeA44Parser::peek() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void EntsoeA44Parser::flush() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user