const rawValues = payload.find(item => item.variable === "payload");
if (rawValues)
{
const valuesString = rawValues.value;
const splitValues = valuesString.value.split(',');
const iBatt = splitValues[0];
const battSoc = splitValues[1];
const packVolts = splitValues[2];
payload.push({"variable": "BattCurrent", "value": iBatt, "unit": "A"});
payload.push({"variable": "SoC", "value": battSoc, "unit": "%"});
payload.push({"variable": "packVolts", "value": packVolts, "unit": "V"});
}