lib

package
v0.0.0-...-46a610b Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInfo

type NetworkInfo struct {
	IP  net.IP
	MAC string
}

NetworkInfo represents a device on the network.

type SamsungController

type SamsungController struct {
	// contains filtered or unexported fields
}

SamsungController represents a controller for samsung smart tvs.

func (*SamsungController) Close

func (controller *SamsungController) Close() error

Close the connection.

type SamsungTVClientConfig

type SamsungTVClientConfig struct {
	TVIPAddress string
}

type SamsungTVRemoteMQTTBridge

type SamsungTVRemoteMQTTBridge struct {
	common.BaseMQTTBridge
	Controller  *SamsungController
	NetworkInfo *NetworkInfo
	TVInfo      *TVInfo
	// contains filtered or unexported fields
}

func NewSamsungTVRemoteMQTTBridge

func NewSamsungTVRemoteMQTTBridge(config SamsungTVClientConfig, mqttClient mqtt.Client, topicPrefix string) (*SamsungTVRemoteMQTTBridge, error)

func (*SamsungTVRemoteMQTTBridge) EventLoop

func (bridge *SamsungTVRemoteMQTTBridge) EventLoop(ctx context.Context)

type TVInfo

type TVInfo struct {
	IP net.IP
}

TVInfo represents a remote TV.

Jump to

Keyboard shortcuts

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