Documentation ¶
Overview ¶
Package sensor contains a gRPC based sensor client.
Package sensor defines an abstract sensing device that can provide measurement readings.
Package sensor contains a gRPC based Sensor service serviceServer.
Index ¶
Constants ¶
const SubtypeName = "sensor"
SubtypeName is a constant that identifies the component resource API string "Sensor".
Variables ¶
var API = resource.APINamespaceRDK.WithComponentType(SubtypeName)
API is a variable that identifies the component resource API.
Functions ¶
func NamesFromRobot ¶
NamesFromRobot is a helper for getting all sensor names from the given Robot.
func NewRPCServiceServer ¶ added in v0.2.36
func NewRPCServiceServer(coll resource.APIResourceCollection[Sensor]) interface{}
NewRPCServiceServer constructs an sensor gRPC service serviceServer.
Types ¶
type Sensor ¶
A Sensor represents a general purpose sensors that can give arbitrary readings of some thing that it is sensing.
func FromDependencies ¶ added in v0.3.0
func FromDependencies(deps resource.Dependencies, name string) (Sensor, error)
FromDependencies is a helper for getting the named sensor from a collection of dependencies.
Directories ¶
Path | Synopsis |
---|---|
Package bme280 implements a bme280 sensor for temperature, humidity, and pressure.
|
Package bme280 implements a bme280 sensor for temperature, humidity, and pressure. |
Package ds18b20 implements a 1-wire temperature sensor
|
Package ds18b20 implements a 1-wire temperature sensor |
Package fake implements a fake Sensor.
|
Package fake implements a fake Sensor. |
Package register registers all relevant Sensors
|
Package register registers all relevant Sensors |
Package sht3xd implements a sht3x-d sensor for temperature and humidity datasheet can be found at: https://cdn-shop.adafruit.com/product-files/2857/Sensirion_Humidity_SHT3x_Datasheet_digital-767294.pdf example repo: https://github.com/esphome/esphome/tree/dev/esphome/components/sht3xd
|
Package sht3xd implements a sht3x-d sensor for temperature and humidity datasheet can be found at: https://cdn-shop.adafruit.com/product-files/2857/Sensirion_Humidity_SHT3x_Datasheet_digital-767294.pdf example repo: https://github.com/esphome/esphome/tree/dev/esphome/components/sht3xd |