Documentation
¶
Index ¶
- type Client
- func (client *Client) Close()
- func (client *Client) Commands() *Commands
- func (client *Client) Config() *Config
- func (client *Client) Device() *Device
- func (client *Client) Info() *Info
- func (client *Client) RegisterNotifications(types []reflect.Type) Notifier
- func (client *Client) RegisterStatusChange(callback func(ConnectionStatus))
- func (client *Client) Start()
- func (client *Client) Status() ConnectionStatus
- type Commands
- type Config
- type ConnectionStatus
- type Device
- func (dev *Device) ChangePassword(newPassword string) error
- func (dev *Device) GetLocalTime() (*commands.GetLocalTimeCfm, error)
- func (dev *Device) GetNetworkSetup() (*commands.GetNetworkSetupCfm, error)
- func (dev *Device) GetProtocolVersion() (*commands.GetProtocolVersionCfm, error)
- func (dev *Device) GetState() (*commands.GetStateCfm, error)
- func (dev *Device) GetVersion() (*commands.GetVersionCfm, error)
- func (dev *Device) LeaveLearnState() error
- func (dev *Device) Reboot() error
- func (dev *Device) SetFactoryDefault() error
- func (dev *Device) SetTimeZone(tzstr string) error
- func (dev *Device) SetUtc(timestamp time.Time) error
- type Event
- type Info
- type Logger
- type Notifier
- type RunError
- type RunRemainingTime
- type RunStatus
- type Session
- type StatusData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RegisterNotifications ¶
func (*Client) RegisterStatusChange ¶
func (client *Client) RegisterStatusChange(callback func(ConnectionStatus))
func (*Client) Status ¶
func (client *Client) Status() ConnectionStatus
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func (*Commands) ChangePosition ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetSystemTable ¶
type ConnectionStatus ¶
type ConnectionStatus uint8
const ( ConnectionClosed ConnectionStatus = 0 ConnectionHandshaking ConnectionStatus = 1 ConnectionOpen ConnectionStatus = 2 )
func (ConnectionStatus) String ¶
func (status ConnectionStatus) String() string
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) ChangePassword ¶
func (*Device) GetLocalTime ¶
func (dev *Device) GetLocalTime() (*commands.GetLocalTimeCfm, error)
func (*Device) GetNetworkSetup ¶
func (dev *Device) GetNetworkSetup() (*commands.GetNetworkSetupCfm, error)
func (*Device) GetProtocolVersion ¶
func (dev *Device) GetProtocolVersion() (*commands.GetProtocolVersionCfm, error)
func (*Device) GetVersion ¶
func (dev *Device) GetVersion() (*commands.GetVersionCfm, error)
func (*Device) LeaveLearnState ¶
func (*Device) SetFactoryDefault ¶
func (*Device) SetTimeZone ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
func (*Info) GetAllNodesInformation ¶
type RunRemainingTime ¶
type RunStatus ¶
type RunStatus struct { StatusID commands.CommandRunOwner ParameterValue commands.MPValue RunStatus commands.CommandRunStatus StatusReply commands.CommandRunStatusReply }
type StatusData ¶
type StatusData struct { NodeIndex int StatusID commands.CommandRunOwner RunStatus commands.CommandRunStatus StatusReply commands.CommandRunStatusReply TargetPosition commands.MPValue CurrentPosition commands.MPValue RemainingTime time.Duration LastMasterExecutionAddress uint32 LastCommandOriginator commands.CommandOriginator }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.