espresense

package
v0.0.0-...-03332a5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ID       string  `json:"id"`
	IDType   int     `json:"idType"`
	Rssi1M   int     `json:"rssi@1m"`
	Rssi     int     `json:"rssi"`
	Raw      float64 `json:"raw"`
	Distance float64 `json:"distance"`
	Speed    float64 `json:"speed"`
	Mac      string  `json:"mac"`
	Interval int     `json:"interval"`
	Name     string  `json:"name,omitempty"`
	Disc     string  `json:"disc,omitempty"`
}

type DevicesResponse

type DevicesResponse struct {
	Room    string    `json:"room"`
	Devices []*Device `json:"devices"`
}

type Instance

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

func New

func New(ip string, client *http.Client) (*Instance, error)

func (*Instance) DeviceByID

func (i *Instance) DeviceByID(id string) (*Device, error)

func (*Instance) DeviceByName

func (i *Instance) DeviceByName(name string) (*Device, error)

func (*Instance) Devices

func (i *Instance) Devices() ([]*Device, error)

func (*Instance) Name

func (i *Instance) Name() (string, error)

Jump to

Keyboard shortcuts

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