Documentation
¶
Index ¶
- Constants
- type EVSECC
- func (e *EVSECC) AddFeatures()
- func (e *EVSECC) HandleEvent(payload spineapi.EventPayload)
- func (e *EVSECC) ManufacturerData(entity spineapi.EntityRemoteInterface) (api.ManufacturerData, error)
- func (e *EVSECC) OperatingState(entity spineapi.EntityRemoteInterface) (model.DeviceDiagnosisOperatingStateType, string, error)
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 ¶
func (e *EVSECC) OperatingState( entity spineapi.EntityRemoteInterface, ) ( model.DeviceDiagnosisOperatingStateType, string, error, )
the operating state data of an EVSE returns operatingState, lastErrorCode, error
Click to show internal directories.
Click to hide internal directories.