MicroOcpp icon indicating copy to clipboard operation
MicroOcpp copied to clipboard

`TransactionEvent` can be `FormatViolation` without `triggerReason`

Open KSR-Yasuda opened this issue 9 months ago • 1 comments

In some cases, TransactionEvent do not have the required property triggerReason.

In TransactionService::Evse::loop(), here it sets event triggerReason, but it may be the initial value UNDEFINED.

Then, the triggerReason property is skipped in message serialization.

Shouldn't you set something to follow the OCPP spec?

KSR-Yasuda avatar Mar 10 '25 03:03 KSR-Yasuda