vif parsing
This commit is contained in:
parent
287b062114
commit
34c723b7ae
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user