Versions in this module Expand all Collapse all v0 v0.16.2 Sep 1, 2023 v0.16.1 Apr 5, 2023 Changes in this version + const ChargingStateCharging + const ChargingStateEVConnected + const ChargingStateIdle + const ChargingStateSuspendedEV + const ChargingStateSuspendedEVSE + const GetTransactionStatusFeatureName + const ProfileName + const ReasonDeAuthorized + const ReasonEVDisconnected + const ReasonEmergencyStop + const ReasonEnergyLimitReached + const ReasonGroundFault + const ReasonImmediateReset + const ReasonLocal + const ReasonLocalOutOfCredit + const ReasonMasterPass + const ReasonOther + const ReasonOvercurrentFault + const ReasonPowerLoss + const ReasonPowerQuality + const ReasonReboot + const ReasonRemote + const ReasonSOCLimitReached + const ReasonStoppedByEV + const ReasonTimeLimitReached + const ReasonTimeout + const TransactionEventEnded + const TransactionEventFeatureName + const TransactionEventStarted + const TransactionEventUpdated + const TriggerReasonAbnormalCondition + const TriggerReasonAuthorized + const TriggerReasonCablePluggedIn + const TriggerReasonChargingRateChanged + const TriggerReasonChargingStateChanged + const TriggerReasonDeAuthorized + const TriggerReasonEVCommunicationLost + const TriggerReasonEVConnectTimeout + const TriggerReasonEVDeparted + const TriggerReasonEVDetected + const TriggerReasonEnergyLimitReached + const TriggerReasonMeterValueClock + const TriggerReasonMeterValuePeriodic + const TriggerReasonRemoteStart + const TriggerReasonRemoteStop + const TriggerReasonResetCommand + const TriggerReasonSignedDataReceived + const TriggerReasonStopAuthorized + const TriggerReasonTimeLimitReached + const TriggerReasonTrigger + const TriggerReasonUnlockCommand + var Profile = ocpp.NewProfile(ProfileName, GetTransactionStatusFeature{}, TransactionEventFeature{}) + type CSMSHandler interface + OnTransactionEvent func(chargingStationID string, request *TransactionEventRequest) (response *TransactionEventResponse, err error) + type ChargingState string + type ChargingStationHandler interface + OnGetTransactionStatus func(request *GetTransactionStatusRequest) (response *GetTransactionStatusResponse, err error) + type GetTransactionStatusFeature struct + func (f GetTransactionStatusFeature) GetFeatureName() string + func (f GetTransactionStatusFeature) GetRequestType() reflect.Type + func (f GetTransactionStatusFeature) GetResponseType() reflect.Type + type GetTransactionStatusRequest struct + TransactionID string + func NewGetTransactionStatusRequest() *GetTransactionStatusRequest + func (r GetTransactionStatusRequest) GetFeatureName() string + type GetTransactionStatusResponse struct + MessageInQueue bool + OngoingIndicator *bool + func NewGetTransactionStatusResponse(messageInQueue bool) *GetTransactionStatusResponse + func (c GetTransactionStatusResponse) GetFeatureName() string + type Reason string + type Transaction struct + ChargingState ChargingState + RemoteStartID *int + StoppedReason Reason + TimeSpentCharging *int + TransactionID string + type TransactionEvent string + type TransactionEventFeature struct + func (f TransactionEventFeature) GetFeatureName() string + func (f TransactionEventFeature) GetRequestType() reflect.Type + func (f TransactionEventFeature) GetResponseType() reflect.Type + type TransactionEventRequest struct + CableMaxCurrent *int + EventType TransactionEvent + Evse *types.EVSE + IDToken *types.IdToken + MeterValue []types.MeterValue + NumberOfPhasesUsed *int + Offline bool + ReservationID *int + SequenceNo int + Timestamp *types.DateTime + TransactionInfo Transaction + TriggerReason TriggerReason + func NewTransactionEventRequest(t TransactionEvent, timestamp *types.DateTime, reason TriggerReason, seqNo int, ...) *TransactionEventRequest + func (r TransactionEventRequest) GetFeatureName() string + type TransactionEventResponse struct + ChargingPriority *int + IDTokenInfo *types.IdTokenInfo + TotalCost *float64 + UpdatedPersonalMessage *types.MessageContent + func NewTransactionEventResponse() *TransactionEventResponse + func (c TransactionEventResponse) GetFeatureName() string + type TriggerReason string