evsecc

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Update of the list of remotei entities supporting the Use Case
	//
	// Use `RemoteEntities` to get the current data
	UseCaseSupportUpdate api.EventType = "cem-evsecc-UseCaseSupportUpdate"

	// An EVSE was connected
	EvseConnected api.EventType = "cem-evsecc-EvseConnected"

	// An EVSE was disconnected
	EvseDisconnected api.EventType = "cem-evsecc-EvseDisconnected"

	// EVSE manufacturer data was updated
	//
	// Use `ManufacturerData` to get the current data
	//
	// Use Case EVSECC, Scenario 1
	//
	// The entity of the message is the entity of the EVSE
	DataUpdateManufacturerData api.EventType = "cem-evsecc-DataUpdateManufacturerData"

	// EVSE operation state was updated
	//
	// Use `OperatingState` to get the current data
	//
	// Use Case EVSECC, Scenario 2
	//
	// The entity of the message is the entity of the EVSE
	DataUpdateOperatingState api.EventType = "cem-evsecc-DataUpdateOperatingState"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EVSECC

type EVSECC struct {
	*usecase.UseCaseBase
}

func NewEVSECC

func NewEVSECC(localEntity spineapi.EntityLocalInterface, eventCB api.EntityEventCallback) *EVSECC

func (*EVSECC) AddFeatures

func (e *EVSECC) AddFeatures()

func (*EVSECC) HandleEvent

func (e *EVSECC) HandleEvent(payload spineapi.EventPayload)

handle SPINE events

func (*EVSECC) ManufacturerData

func (e *EVSECC) ManufacturerData(
	entity spineapi.EntityRemoteInterface,
) (
	api.ManufacturerData,
	error,
)

the manufacturer data of an EVSE returns deviceName, serialNumber, error

func (*EVSECC) OperatingState

the operating state data of an EVSE returns operatingState, lastErrorCode, error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL