upnp

package
v0.0.0-...-1d7dbd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Mac string
	IP  string
	// contains filtered or unexported fields
}

Client is used to comunicate with remote device

func NewClient

func NewClient(ip string, mac string) Client

NewClient instantiates new device remote controller client

func (Client) Authorize

func (c Client) Authorize(pin string) (*http.Response, error)

Authorize with remote device providing an "Authorization: Basic *" header

func (Client) Handshake

func (c Client) Handshake() (*http.Response, error)

Handshake with remote device

func (Client) IsDeviceOn

func (c Client) IsDeviceOn() bool

IsDeviceOn checks if device is active

func (Client) PowerOn

func (c Client) PowerOn() (e error)

PowerOn turns device on if it's Off

func (*Client) RequestControlsList

func (c *Client) RequestControlsList() (response *http.Response, e error)

RequestControlsList gets UPnP controller description from remote device

func (*Client) RequestSystemInformation

func (c *Client) RequestSystemInformation() (e error)

RequestSystemInformation gathers device system information

func (Client) SendCommand

func (c Client) SendCommand(command string) (signal string, response *http.Response, e error)

SendCommand sends a signal to activate a remote device function

func (Client) SendIRCC

func (c Client) SendIRCC(IRCC string) (*http.Response, error)

SendIRCC sends a raw IRCC signal to device

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL