class Optergy::P864
- Optergy::P864
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Sensor
Defined in:
optergy/p864.crConstant Summary
-
NO_MATCH =
[] of Interface::Sensor::Detail
-
TYPES =
{"value", "input", "output"}
Class Method Summary
Macro Summary
Instance Method Summary
- #analog_input(instance : Int32)
- #analog_inputs
- #analog_output(instance : Int32)
- #analog_outputs
- #analog_value(instance : Int32)
- #analog_values
- #auth_headers
- #binary_input(instance : Int32)
- #binary_inputs
- #binary_output(instance : Int32)
- #binary_outputs
- #binary_value(instance : Int32)
- #binary_values
- #configuration
- #get_token
- #on_load
- #on_update
-
#sensor(mac : String, id : String | Nil = nil) : Interface::Sensor::Detail | Nil
return the specified sensor details
-
#sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Interface::Sensor::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)
- #set_input_mode(instance : Int32, mode : String)
- #token_expired?
- #version
- #write_analog_output(instance : Int32, value : Float64, priority : Int32 = 8)
- #write_analog_value(instance : Int32, value : Float64, priority : Int32 = 8)
- #write_binary_output(instance : Int32, value : Bool, priority : Int32 = 8)
- #write_binary_value(instance : Int32, value : Bool, priority : Int32 = 8)
Class Method Detail
Macro Detail
Instance Method Detail
def sensor(mac : String, id : String | Nil = nil) : Interface::Sensor::Detail | Nil
#
Description copied from module PlaceOS::Driver::Interface::Sensor
return the specified sensor details
def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Interface::Sensor::Detail)
#
Description copied from module PlaceOS::Driver::Interface::Sensor
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)