class Tinkerforge::BrickletAmbientLightV3

Constants

ILLUMINANCE_RANGES

Public Instance Methods

state() click to toggle source

Returns the device's state.

Calls superclass method
# File lib/tinderfridge/devices/bricklet_ambient_light_v3/bricklet_ambient_light_v3.rb, line 8
def state
  super.merge(
    'configuration'     => conf = get_configuration,
    'illuminance_range' => ILLUMINANCE_RANGES[ conf[0] ],
    'integration_time'  => 50 + conf[1] * 50,
    'illuminance_raw'   => get_illuminance,
  )
end