diff --git a/cube/User/Src/mbusComm.c b/cube/User/Src/mbusComm.c index 550320b..dec49e6 100644 --- a/cube/User/Src/mbusComm.c +++ b/cube/User/Src/mbusComm.c @@ -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]); + } } } }