Documentation
¶
Index ¶
Constants ¶
View Source
const ( // A paired remote device was connected DeviceConnected api.EventType = "deviceConnected" // A paired remote device was disconnected DeviceDisconnected api.EventType = "deviceDisconnected" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cem ¶ added in v0.5.0
type Cem struct { Service eebusapi.ServiceInterface Currency model.CurrencyType // contains filtered or unexported fields }
Generic CEM implementation
func NewCEM ¶
func NewCEM( serviceDescription *eebusapi.Configuration, serviceHandler eebusapi.ServiceReaderInterface, eventCB api.DeviceEventCallback, log logging.LoggingInterface) *Cem
func (*Cem) AddUseCase ¶ added in v0.5.0
func (h *Cem) AddUseCase(usecase api.UseCaseInterface)
Add a use case implementation
func (*Cem) HandleEvent ¶ added in v0.5.0
func (h *Cem) HandleEvent(payload spineapi.EventPayload)
handle SPINE events
Click to show internal directories.
Click to hide internal directories.