Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Buffer []byte BufferSize int Connection *tls.Conn Certificates *tls.Certificate Address string Port int Read bool RemoteData RemoteData Error error }
func New ¶
func New(addr string, port int, certs *tls.Certificate) Command
Create a new command object with the ip and port of the android tv device and a certificate
func (*Command) GetData ¶
func (c *Command) GetData() (RemoteData, error)
Return informations on the current android tv device
type RemoteData ¶
type RemoteData struct { Powered struct { Powered bool `json:"powered"` UpdateDate time.Time `json:"updateDate"` } `json:"powered"` App struct { CurrentApp string `json:"currentApp"` UpdateDate time.Time `json:"updateDate"` } `json:"app"` Volume struct { Level uint32 `json:"level"` Maximum uint32 `json:"maximum"` Muted bool `json:"muted"` PlayerModel string `json:"playerModel"` UpdateDate time.Time `json:"updateDate"` } `json:"volume"` Device struct { Model string `json:"model"` Vendor string `json:"vendor"` Version string `json:"version"` UpdateDate time.Time `json:"updateDate"` } `json:"device"` }
struct of available infos for the android tv device
Click to show internal directories.
Click to hide internal directories.