Class: Tinkerforge::BrickletHallEffectV2

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

Instance Method Summary collapse

Instance Method Details

#stateObject

Returns the device’s state.



6
7
8
9
10
11
12
# File 'lib/tinderfridge/devices/bricklet_hall_effect_v2/bricklet_hall_effect_v2.rb', line 6

def state
  super.merge(
    'magnetic_flux_density' => get_magnetic_flux_density,
    'counter'               => get_counter(false),
    'counter_config'        => get_counter_config,
  )
end