|
@@ -8841,7 +8841,7 @@ int sendMeterValuesRequest(int gun_index, ReadingContext dataType)
|
|
|
{
|
|
|
json_object_object_add(MeterValueBuffer, "timestamp", json_object_new_string((char*)ShmOCPP16Data->MeterValues[gun_index].MeterValue[idxMeter].TimeStamp));
|
|
|
json_object_object_add(MeterValueBuffer, "sampledValue", sampledValuesBuffer);
|
|
|
- if(meterValueBufferDataQuantity(gun_index, dataType) < 250) meterValueBufferInsert(gun_index, dataType, ShmOCPP16Data->MeterValues[gun_index].TransactionId, (char*)json_object_to_json_string_ext(MeterValueBuffer, JSON_C_TO_STRING_PLAIN));
|
|
|
+ if(meterValueBufferDataQuantity(gun_index, dataType) < 200) meterValueBufferInsert(gun_index, dataType, ShmOCPP16Data->MeterValues[gun_index].TransactionId, (char*)json_object_to_json_string_ext(MeterValueBuffer, JSON_C_TO_STRING_PLAIN));
|
|
|
json_object_put(MeterValueBuffer);
|
|
|
}
|
|
|
else
|
|
@@ -22955,10 +22955,13 @@ void InitialSystemValue(void)
|
|
|
TransactionMessageAttemptsValue = atoi((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[TransactionMessageAttempts].ItemData);
|
|
|
TransactionMessageRetryIntervalValue = atoi((char *)ShmOCPP16Data->ConfigurationTable.CoreProfile[TransactionMessageRetryInterval].ItemData);
|
|
|
|
|
|
- //Hear Beat
|
|
|
+ //Heart Beat
|
|
|
HeartBeatWithNOResponse = 0;
|
|
|
HeartBeatWaitTime = atoi((char*)ShmOCPP16Data->ConfigurationTable.CoreProfile[HeartbeatInterval].ItemData);;
|
|
|
- FirstHeartBeat = 0;
|
|
|
+ if(HeartBeatWaitTime == 0)
|
|
|
+ FirstHeartBeat = TRUE;
|
|
|
+ else
|
|
|
+ FirstHeartBeat = FALSE;
|
|
|
|
|
|
FirmwareStatusNotificationStatus = FIRMWARE_STATUS_IDLE; // Idle
|
|
|
DiagnosticsStatusNotificationStatus = DIAGNOSTIC_STATUS_IDLE; // Idle
|