Class: Tinkerforge::BrickletBarometerV2
- Inherits:
-
Object
- Object
- Tinkerforge::BrickletBarometerV2
- Defined in:
- lib/tinderfridge/devices/bricklet_barometer_v2/bricklet_barometer_v2.rb
Instance Method Summary collapse
-
#state ⇒ Object
Returns the device’s state.
Instance Method Details
#state ⇒ Object
Returns the device’s state.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/tinderfridge/devices/bricklet_barometer_v2/bricklet_barometer_v2.rb', line 6 def state super.merge( 'air_pressure' => get_air_pressure, 'calibration' => get_calibration, 'altitude' => get_altitude, 'reference_air_pressure' => get_reference_air_pressure, 'temperature' => get_temperature, 'moving_average_configuration' => get_moving_average_configuration, 'sensor_configuration' => get_sensor_configuration, ) end |