OCPP-2.0-CP-Simulator
OCPP-2.0-CP-Simulator copied to clipboard
startTransaction() TransactionEvent Request Invalid Type
Hi,
I found two errors in the startTransaction(), both of them are invalid type errors. Refer to OCPP 2.0: Part 2- Specification, page 323 1.62 TransactionEvent section.
- transactionData.remoteStartId should be INTEGER
"transactionData": {
"id": lastTranId,
"remoteStartId": 0 //integer
}
- sampledValue.value should be DECIMAL
"meterValue": [{
"timestamp": formatDate(new Date()),
"sampledValue": [{
"value": 0 //decimal
}]
}]
Thanks.
Fixed by #5 - issue can be closed. 😊