Module: MatrixCreator::Humidity
- Defined in:
- lib/matrix_creator/humidity.rb
Overview
Module: Humidity
Communicate with the Humidity driver
Constant Summary collapse
- HUMIDITY_CONFIG =
Configuration values for the Humidity driver
MatrixCreator.settings[:devices][:humidity]
- BASE_PORT =
Base port to send data to Humidity driver
HUMIDITY_CONFIG[:port]
Class Method Summary collapse
-
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the Humidity driver.
-
.detect_once ⇒ Hash
Detects one response from the Humidity driver and returns its value.
Class Method Details
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the Humidity driver
35 36 37 |
# File 'lib/matrix_creator/humidity.rb', line 35 def self.detect( = {}, &block) MatrixCreator::DriverBase.detect(BASE_PORT, MatrixMalos::Humidity, , block) end |
.detect_once ⇒ Hash
Detects one response from the Humidity driver and returns its value
44 45 46 |
# File 'lib/matrix_creator/humidity.rb', line 44 def self.detect_once detect(max_resp: 1).first end |