Documentation
¶
Index ¶
- func ResolveHost(host string) (string, error)
- type Esp32Client
- func (c *Esp32Client) AdcChRead(ch uint32) (*cmds.AdcChReadRes, error)
- func (c *Esp32Client) AdcChsGet() (*cmds.AdcChsGetRes, error)
- func (c *Esp32Client) Ping() (*cmds.PingRes, error)
- func (c *Esp32Client) PrintInfo()
- func (c *Esp32Client) PwmChGet(ch uint32) (*cmds.PwmChGetRes, error)
- func (c *Esp32Client) PwmChSet(ch uint32, period uint32, pulse uint32) (*cmds.PwmChSetRes, error)
- func (c *Esp32Client) PwmChsGet() (*cmds.PwmChsGetRes, error)
- func (c *Esp32Client) PwmPeriodIntervalGet() (*cmds.PwmPeriodsGetRes, error)
- func (c *Esp32Client) SendCmd(req *cmds.Request) (*cmds.Response, error)
- func (c *Esp32Client) VersionGet() (*cmds.VersionGetRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveHost ¶ added in v1.0.2
Types ¶
type Esp32Client ¶
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) 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) VersionGet ¶
func (c *Esp32Client) VersionGet() (*cmds.VersionGetRes, error)
Click to show internal directories.
Click to hide internal directories.