v0.17.0
Pre-release
Pre-release
Additions and improvements
v1.6
- Added the
IsConnected
getter to charge point instances
v2.0.1
- Added the
IsConnected
getter to charging station instances SampleValue.Value
field is not required anymore- Added the missing
CertificateHashDataChain
optional field in GetInstalledCertificateIds response - Added the missing
V2GCertificateChain
CertificateUse enum value - Added the missing
ISO15693
andMacAddress
enum values of IdTokenType
Websocket
- The default subprotocol is now set correctly during initial negotiation and may be enforced via the
SetRequestedSubProtocol
on the websocket client - The server now supports adding additional HTTP handlers, via an underlying router
Generic
- Upgraded lib to min Go version 1.16
- Upgraded some dependencies
- Message callbacks are now invoked within dedicated goroutines to prevent the called from being blocked
- Added debug logs for outgoing/incoming raw JSON messages
- Added support for HTML escaping
- Added the
SetNewChargingStationValidationHandler
on server endpoints for checking incoming connections before the websocket upgrade takes place - Improved error handling when sending responses/errors
- Added optional
SetInvalidMessageHook
handler to intercept and handle invalid messages on ocppj layer
Bugfixes
v1.6
stopTime
parameter in GetDiagnosticsRequest is now named correctlyChargingProfileStatusNotSupported
value in SetChargingProfile messageClearChargingProfileStatus
validation in ClearChargingProfile confirmationConfigurationKey
validation in GetConfiguration message- Several validation keys are not overwritten by the v2.0.1 package anymore due to name duplication
v2.0.1
idToken
type- Removed incorrect validation for
idToken
in RequestTransaction request AttributeStatus
validation in SetVariables responsemessagesInQueue
json field in GetTransactionStatus responsecertificateType
field in GetInstalledCertificateIds request- Update
FormatViolation
ocpp-j error type SerialNumber
updated to max length 40 in CertificateHashData and OCSPRequestDataType
Generic
- Incoming ocpp-j errors with empty details field are now parsed correctly
- Invalid ocpp-j message types are now parsed and handled correctly
- Fixed deadlock caused by double invocation on
client.Stop