api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveHost added in v1.0.2

func ResolveHost(host string) (string, error)

Types

type Esp32Client

type Esp32Client struct {
	Transport string
	Ipv4      string
	DestPort  uint16
}

func NewEsp32Client

func NewEsp32Client(transport string, ipv4 string, dest_port uint16) (*Esp32Client, error)

func (*Esp32Client) AdcChRead

func (c *Esp32Client) AdcChRead(ch uint32) (*cmds.AdcChReadRes, error)

func (*Esp32Client) AdcChsGet

func (c *Esp32Client) AdcChsGet() (*cmds.AdcChsGetRes, error)

func (*Esp32Client) Ping added in v1.0.3

func (c *Esp32Client) Ping() (*cmds.PingRes, error)

func (*Esp32Client) PrintInfo

func (c *Esp32Client) PrintInfo()

func (*Esp32Client) PwmChGet

func (c *Esp32Client) PwmChGet(ch uint32) (*cmds.PwmChGetRes, error)

func (*Esp32Client) PwmChSet

func (c *Esp32Client) PwmChSet(ch uint32, period uint32, pulse uint32) (*cmds.PwmChSetRes, error)

func (*Esp32Client) PwmChsGet

func (c *Esp32Client) PwmChsGet() (*cmds.PwmChsGetRes, error)

func (*Esp32Client) PwmPeriodIntervalGet

func (c *Esp32Client) PwmPeriodIntervalGet() (*cmds.PwmPeriodsGetRes, error)

func (*Esp32Client) SendCmd

func (c *Esp32Client) SendCmd(req *cmds.Request) (*cmds.Response, error)

SendCmd sends a protobuf request and returns the response

func (*Esp32Client) VersionGet

func (c *Esp32Client) VersionGet() (*cmds.VersionGetRes, error)

Jump to

Keyboard shortcuts

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