Class: Tinkerforge::BrickletBarometerV2

Inherits:
Object
  • Object
show all
Defined in:
lib/tinderfridge/devices/bricklet_barometer_v2/bricklet_barometer_v2.rb

Instance Method Summary collapse

Instance Method Details

#stateObject

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