device

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AirQualitySensorJob added in v0.5.0

func AirQualitySensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

func BMPSensorJob added in v0.5.0

func BMPSensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

func LoudnessSensorJob added in v0.5.0

func LoudnessSensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

func NU40C16SensorJob added in v0.5.0

func NU40C16SensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

func SI1145SensorJob added in v0.5.0

func SI1145SensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

func SoilMoistureSensorJob added in v0.5.0

func SoilMoistureSensorJob(lateralusClient *lateralus.Client, schismClient *schism.Client, device *PushitDevice)

Types

type Batch added in v0.5.0

type Batch struct {
	Data []_business.DataDefault
	// contains filtered or unexported fields
}

type Job added in v0.5.0

type Job struct {
	*gocron.Scheduler
	// contains filtered or unexported fields
}

func NewJob added in v0.5.0

func NewJob(humanReadableSchedule string) *Job

func (*Job) String added in v0.5.0

func (j *Job) String() string

type PushitDevice

type PushitDevice struct {
	*business.Device
	// contains filtered or unexported fields
}

func NewPushitDevice

func NewPushitDevice() *PushitDevice

func (*PushitDevice) Accesstoken

func (d *PushitDevice) Accesstoken() *business.Accesstoken

func (*PushitDevice) Login added in v0.5.0

func (d *PushitDevice) Login(schismClient *schism.Client, name string, macAddr string) (err error)

Login and setup with remote device data

func (*PushitDevice) Register added in v0.5.0

func (d *PushitDevice) Register(schismClient *schism.Client, name string, macAddr string) (err error)

Register and login if no id stored

func (*PushitDevice) RegisterJobs added in v0.5.0

func (d *PushitDevice) RegisterJobs(lateralusClient *lateralus.Client, schismClient *schism.Client)

func (*PushitDevice) RegisterOrLogin

func (d *PushitDevice) RegisterOrLogin(schismClient *schism.Client, name string, macAddr string) (err error)

func (*PushitDevice) StartJobs added in v0.5.0

func (d *PushitDevice) StartJobs()

StartJobs kickoff all device jobs

Jump to

Keyboard shortcuts

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