vif parsing

This commit is contained in:
Wolfgang Hottgenroth 2020-11-17 17:49:10 +01:00
parent 287b062114
commit 34c723b7ae
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -161,12 +161,19 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) {
for (uint8_t j = 0; j < MBUSDEVICE_NUM_OF_CONSIDEREDFIELDS; j++) {
if ((localMbusCommHandle->device->consideredField[j].index == i) &&
(strlen(localMbusCommHandle->device->consideredField[j].label) > 0)) {
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] txt: I:%d, L:%s, U:%s V:%s",
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] txt: I:%d, L:%s, VIF: 0x%02x U:%s V:%s",
localMbusCommHandle->requestId,
i,
localMbusCommHandle->device->consideredField[j].label,
record->drh.vib.vif,
mbus_data_record_unit(record),
mbus_data_record_value(record));
for (size_t vifeIdx = 0; vifeIdx < record->drh.vib.nvife; vifeIdx++) {
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] vife %d 0x%02x",
localMbusCommHandle->requestId,
vifeIdx,
record->drh.vib.vife[vifeIdx]);
}
}
}
}