Documentation ¶
Index ¶
Constants ¶
View Source
const ( COMMAND_ERROR = 0 COMMAND_LOGIN = 1 COMMAND_LOGIN_RESPONSE = 2 COMMAND_GET_GROUPS = 10 COMMAND_GET_GROUPS_RESPONSE = 11 COMMAND_SET_STATUS = 12 COMMAND_SET_STATUS_RESPONSE = 13 )
View Source
const ( ON = 255 OFF = 0 )
Variables ¶
View Source
var ( ErrBusy = errors.New("The controller is busy, please try again later") ErrSessionTimeout = errors.New("The session timed out") ErrTooManyConnections = errors.New("Too much devices are connected to the controller") ErrFailed = errors.New("The controller was unable to execute your command") ErrSessionStartFailure = errors.New("Your session could not be started") ErrUnknownCommand = errors.New("The command is unknown") ErrNoEQWebConfig = errors.New("No EQOweb configuration found, please run System manager to upload and configure EQOweb.") ErrSystemManagerConnected = errors.New("System manager is still connected. Please close System manager to continue") ErrUndefined = errors.New("Undefined error in the controller. Please try again later") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Command ¶
func NewGetGroupsCommand ¶
func NewGetGroupsCommand() *Command
func NewLoginCommand ¶
func NewSetStatusCommand ¶
type Response ¶
type Response struct { Type int Value json.RawMessage }
func (*Response) Error ¶
Error returns the appropriate error if the response is an error response (Type==0), nil if not
func (*Response) GetGroupsResponse ¶
func (*Response) GetLoginResponse ¶
Click to show internal directories.
Click to hide internal directories.