module PlaceOS::Driver::Interface::Sensor
Overview
a device or service that provides sensor data, either singular or for multiple devices
Defined in:
placeos-driver/interface/sensor.crInstance Method Summary
-
#sensor(mac : String, id : String | Nil = nil) : Detail | Nil
return the specified sensor details
-
#sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Detail)
return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)
Instance Method Detail
return the specified sensor details