new WirelessTagSensor(tag, sensorType)
Represents a sensor of a WirelessTag
. Physical tags have
multiple sensors (e.g., tenperature, humidity, light, motion, etc),
as well as dynamic status (such as out of range) and numeric (such
as signal strength and battery voltage) properties. We abstract all
of these out to sensors, which allows us to treat temperature, out
of range status, and battery voltage as conceptually the
same. Sensors do not all have the same capabilities (e.g., some can
be armed for monitoring, others, such as signal, cannot). However,
all sensors have a type (humidity, motion, light, signal, etc).
A user will not normally need to create instances directly; instead
they are found, and created by WirelessTag#discoverSensors
.
Parameters:
Name | Type | Description |
---|---|---|
tag |
WirelessTag | the tag instance that has this sensor |
sensorType |
string | the type of the sensor |
- Source: