iot: github.com/vaelen/iot/examples Index | Files | Directories

package examples

import "github.com/vaelen/iot/examples"

Index

Package Files

sensor_reader.go

type SensorReader Uses

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

SensorReader is a Google IoT Core device that reads device sensors

func NewSensorReader Uses

func NewSensorReader(id *iot.ID, credentials *iot.Credentials, queueDirectory string, logger iot.Logger, servers ...string) (*SensorReader, error)

NewSensorReader creates a new sensor reader

func (*SensorReader) Close Uses

func (sr *SensorReader) Close() error

Close shuts down the SensorReader

func (*SensorReader) Wait Uses

func (sr *SensorReader) Wait()

Wait blocks until the SensorReader has stopped

Directories

PathSynopsis
read-sensors

Package examples imports 9 packages (graph) and is imported by 1 packages. Updated 2018-06-12. Refresh now. Tools for package owners.