|
@@ -16190,9 +16190,7 @@ void handleStartTransactionResponse(char *payload, int gun_index)
|
|
|
}
|
|
|
json_object_put(StartTransaction);
|
|
|
|
|
|
- isQueueSendable = 1;
|
|
|
- ShmOCPP16Data->CpMsg.bits[gun_index].StartTransactionConf = 1;
|
|
|
- ShmOCPP16Data->CpMsg.bits[gun_index].StartTransactionReq = 0;
|
|
|
+ OCPP_updatePeriodEnergy(gun_index);
|
|
|
|
|
|
//-----------Start : write to the Queue TransactionId file -----------------//
|
|
|
if((access("/Storage/OCPP/QueueTransactionId",F_OK))!=-1)
|
|
@@ -16227,6 +16225,10 @@ void handleStartTransactionResponse(char *payload, int gun_index)
|
|
|
DEBUG_INFO("idTagInfo-status: %s\n", ShmOCPP16Data->StartTransaction[gun_index].ResponseIdTagInfo.Status);
|
|
|
DEBUG_INFO("transactionId: %d\n", ShmOCPP16Data->StartTransaction[gun_index].ResponseTransactionId);
|
|
|
system("/bin/fsync -d /dev/mtdblock13;/bin/sync &");
|
|
|
+
|
|
|
+ isQueueSendable = 1;
|
|
|
+ ShmOCPP16Data->CpMsg.bits[gun_index].StartTransactionConf = 1;
|
|
|
+ ShmOCPP16Data->CpMsg.bits[gun_index].StartTransactionReq = 0;
|
|
|
}
|
|
|
|
|
|
void handleStatusNotificationResponse(char *payload, int gun_index)
|