Documentation ¶
Overview ¶
ApcProvider Connects to an APC Host and provides slices of the Events and Status topics on a period cycle declared in the host mopdel as network sampling period. Slices are returned over a seperate channels to whoever is listening.
Index ¶
- Constants
- func NewAPCProvider(ctx context.Context, host *entities.ApcHost, tuple entities.ChannelTuple) (interfaces.ApcProvider, error)
- func NewConfig(prefs fyne.Preferences) (interfaces.Configuration, error)
- func NewHubitatProvider(ctx context.Context, hubHost *entities.HubHost) interfaces.HubApiProvider
- type HubError
Constants ¶
View Source
const ( HostLocal = "127.0.0.1:3551" HostLocalName = "Local" HostsPrefs = "ApcHost" HubHostsPrefs = "HubHost" )
View Source
const ( DeviceList = "DeviceList" DeviceDetailsList = "DeviceDetailsList" DeviceDetailById = "DeviceDetailById" DeviceCapabilitiesById = "DeviceCapabilitiesById" DeviceEventHistoryById = "DeviceEventHistoryById" CreateDeviceEventListener = "CreateDeviceEventListener" )
Variables ¶
This section is empty.
Functions ¶
func NewAPCProvider ¶
func NewAPCProvider(ctx context.Context, host *entities.ApcHost, tuple entities.ChannelTuple) (interfaces.ApcProvider, error)
func NewConfig ¶
func NewConfig(prefs fyne.Preferences) (interfaces.Configuration, error)
func NewHubitatProvider ¶ added in v0.9.6
func NewHubitatProvider(ctx context.Context, hubHost *entities.HubHost) interfaces.HubApiProvider
NewHubitatProvider creates a new hub provider to a configured hub host calls DeviceList to initialize the devices in provided hubHost
Types ¶
Click to show internal directories.
Click to hide internal directories.