vif parsing
This commit is contained in:
parent
c9f1ba9fa9
commit
29b98cf4fa
@ -181,12 +181,14 @@ static void parseAndPrintFrame(t_mbusCommHandle *localMbusCommHandle) {
|
|||||||
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] parsed VIB N: %s, U: %s, E: %d",
|
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] parsed VIB N: %s, U: %s, E: %d",
|
||||||
localMbusCommHandle->requestId,
|
localMbusCommHandle->requestId,
|
||||||
parsedVIB.name, parsedVIB.unit, parsedVIB.exponent);
|
parsedVIB.name, parsedVIB.unit, parsedVIB.exponent);
|
||||||
|
/*
|
||||||
if (parsedVIB.found) {
|
if (parsedVIB.found) {
|
||||||
uint8_t value = strtol(mbus_data_record_value(record), NULL, 10);
|
uint8_t value = strtol(mbus_data_record_value(record), NULL, 10);
|
||||||
float weightedValue = ((float) value) * powf(10.0, ((float) parsedVIB.exponent));
|
float weightedValue = ((float) value) * powf(10.0, ((float) parsedVIB.exponent));
|
||||||
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] result: %s is %f %s",
|
coloredMsg(LOG_YELLOW, true, "mbc papf [%d] result: %s is %f %s",
|
||||||
localMbusCommHandle->requestId, parsedVIB.name, weightedValue, parsedVIB.unit);
|
localMbusCommHandle->requestId, parsedVIB.name, weightedValue, parsedVIB.unit);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user