pairing

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pairing

type Pairing struct {
	Buffer       []byte
	BufferSize   int
	Connection   *tls.Conn
	Certificates *tls.Certificate
	Address      string
	Port         int
}

func New

func New(addr string, port int, certs *tls.Certificate) Pairing

Create a new pairing object with the ip and port of the android tv device and a certificate

func (*Pairing) Connect

func (p *Pairing) Connect() error

Connect to the android tv device and start the pairing process

func (*Pairing) Secret

func (p *Pairing) Secret(code string) error

Send the secret to the android tv device and finish the pairing process

Jump to

Keyboard shortcuts

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