vif parsing
This commit is contained in:
parent
34c723b7ae
commit
cd249e5ad8
@ -37,7 +37,7 @@ BUILD_DIR = build
|
|||||||
######################################
|
######################################
|
||||||
# C sources
|
# C sources
|
||||||
C_SOURCES = \
|
C_SOURCES = \
|
||||||
User/Src/mqttComm.c User/Src/cmdHandler.c User/Src/ports.c User/Src/eeprom.c User/Src/frontend.c User/Src/logger.c User/Src/loopCtrl.c User/Src/main2.c User/Src/mbusComm.c User/Src/ringbuffer.c User/Src/show.c User/Src/utils.c User/Src/wizHelper.c hottislib/PontCoopScheduler.c \
|
User/Src/mbusParserExt.c User/Src/mqttComm.c User/Src/cmdHandler.c User/Src/ports.c User/Src/eeprom.c User/Src/frontend.c User/Src/logger.c User/Src/loopCtrl.c User/Src/main2.c User/Src/mbusComm.c User/Src/ringbuffer.c User/Src/show.c User/Src/utils.c User/Src/wizHelper.c hottislib/PontCoopScheduler.c \
|
||||||
libmbus/mbus/mbus-protocol.c \
|
libmbus/mbus/mbus-protocol.c \
|
||||||
Core/Src/main.c \
|
Core/Src/main.c \
|
||||||
Core/Src/gpio.c \
|
Core/Src/gpio.c \
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
#include <logger.h>
|
#include <logger.h>
|
||||||
#include <frontend.h>
|
#include <frontend.h>
|
||||||
#include <wizHelper.h>
|
#include <wizHelper.h>
|
||||||
|
#include <mbusParserExt.h>
|
||||||
|
|
||||||
|
|
||||||
#include <mbus/mbus-protocol.h>
|
#include <mbus/mbus-protocol.h>
|
||||||
|
|
||||||
@ -174,6 +176,10 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) {
|
|||||||
vifeIdx,
|
vifeIdx,
|
||||||
record->drh.vib.vife[vifeIdx]);
|
record->drh.vib.vife[vifeIdx]);
|
||||||
}
|
}
|
||||||
|
parsedVIB_t parsedVIB = parseVIB(record->drh.vib);
|
||||||
|
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] parsed VIB N: %s, U: %s, E: %d",
|
||||||
|
localMbusCommHandle->requestId,
|
||||||
|
parsedVIB.name, parsedVIB.unit, parsedVIB.exponent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user