Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SensorReader ¶
type SensorReader struct {
// contains filtered or unexported fields
}
SensorReader is a Google IoT Core device that reads device sensors
func NewSensorReader ¶
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 ¶
func (sr *SensorReader) Close() error
Close shuts down the SensorReader
func (*SensorReader) Wait ¶
func (sr *SensorReader) Wait()
Wait blocks until the SensorReader has stopped
Click to show internal directories.
Click to hide internal directories.