diff --git a/ESPBMS.ino b/ESPBMS.ino index 91ad14b..eadd997 100644 --- a/ESPBMS.ino +++ b/ESPBMS.ino @@ -317,14 +317,14 @@ bool processBasicInfo(byte *data, unsigned int dataLen){ uint16_t BalanceCodeHigh = (two_ints_into16(data[14], data[15])); uint8_t MosfetStatus = ((byte)data[20]); - Serial.printf(">>>%s.voltage %f\r\n",currentName, (float)Volts / 1000); - Serial.printf(">>>%s.amps %f\r\n",currentName, (float)Amps / 1000); - Serial.printf(">>>%s.watts %f\r\n",currentName, (float)Watts); - Serial.printf(">>>%s.capacity_remain_ah %f\r\n",currentName, (float)CapacityRemainAh / 1000); - Serial.printf(">>>%s.capacity_remain_wh %f\r\n",currentName, ((float)(CapacityRemainAh) / 1000) * ((float)(Volts) / 1000)); - Serial.printf(">>>%s.capacity_remain_percent %d\r\n",currentName, CapacityRemainPercent); - Serial.printf(">>>%s.temp1 %f\r\n",currentName, (float)Temp1 / 10); - Serial.printf(">>>%s.temp2 %f\r\n",currentName, (float)Temp2 / 10); + Serial.printf(">>>rc.%s.voltage %f\r\n",currentName, (float)Volts / 1000); + Serial.printf(">>>rc.%s.amps %f\r\n",currentName, (float)Amps / 1000); + Serial.printf(">>>rc.%s.watts %f\r\n",currentName, (float)Watts); + Serial.printf(">>>rc.%s.capacity_remain_ah %f\r\n",currentName, (float)CapacityRemainAh / 1000); + Serial.printf(">>>rc.%s.capacity_remain_wh %f\r\n",currentName, ((float)(CapacityRemainAh) / 1000) * ((float)(Volts) / 1000)); + Serial.printf(">>>rc.%s.capacity_remain_percent %d\r\n",currentName, CapacityRemainPercent); + Serial.printf(">>>rc.%s.temp1 %f\r\n",currentName, (float)Temp1 / 10); + Serial.printf(">>>rc.%s.temp2 %f\r\n",currentName, (float)Temp2 / 10); /* Serial.printf("%s Balance Code Low: 0x%x\r\n",currentName, BalanceCodeLow); Serial.printf("%s Balance Code High: 0x%x\r\n",currentName, BalanceCodeHigh); @@ -358,13 +358,13 @@ bool processCellInfo(byte *data, unsigned int dataLen) _cellMin = CellVolt; } - Serial.printf(">>>%s.cell.%d.voltage %f\r\n",currentName, i+1,(float)CellVolt/1000); + Serial.printf(">>>rc.%s.cell.%d.voltage %f\r\n",currentName, i+1,(float)CellVolt/1000); } - Serial.printf(">>>%s.max_cell_voltage %f\r\n",currentName, (float)_cellMax / 1000); - Serial.printf(">>>%s.min_cell_voltage %f\r\n",currentName, (float)_cellMin / 1000); - Serial.printf(">>>%s.difference_cell_voltage %f\r\n",currentName, (float)(_cellMax - _cellMin) / 1000); - Serial.printf(">>>%s.average_cell_voltage %f\r\n",currentName, (float)(_cellSum / NumOfCells) / 1000); + Serial.printf(">>>rc.%s.max_cell_voltage %f\r\n",currentName, (float)_cellMax / 1000); + Serial.printf(">>>rc.%s.min_cell_voltage %f\r\n",currentName, (float)_cellMin / 1000); + Serial.printf(">>>rc.%s.difference_cell_voltage %f\r\n",currentName, (float)(_cellMax - _cellMin) / 1000); + Serial.printf(">>>rc.%s.average_cell_voltage %f\r\n",currentName, (float)(_cellSum / NumOfCells) / 1000); gotCellInfo=true;