Method: Tinkerforge::BrickletCompass#register_callback

Defined in:
lib/tinkerforge/bricklet_compass.rb

#register_callback(id, &block) ⇒ Object

Registers a callback with ID id to the block block.



392
393
394
395
# File 'lib/tinkerforge/bricklet_compass.rb', line 392

def register_callback(id, &block)
  callback = block
  @registered_callbacks[id] = callback
end