Skip to content

v0.17.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@lorenzodonini lorenzodonini released this 10 Sep 20:33
· 63 commits to master since this 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 and MacAddress 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 correctly
  • ChargingProfileStatusNotSupported value in SetChargingProfile message
  • ClearChargingProfileStatus validation in ClearChargingProfile confirmation
  • ConfigurationKey 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 response
  • messagesInQueue json field in GetTransactionStatus response
  • certificateType 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