def on_bridge_data(obj=nil, &block)
	
      @on_bridge_data_obj = obj
      @on_bridge_data = Proc.new { |device, obj_ptr, index, value|
	    yield self, @inputs[index], value, object_for(obj_ptr)

	}
      Klass.set_OnBridgeData_Handler(@handle, @on_bridge_data, pointer_for(obj))
    end
def on_bridge_data(obj=nil, &block)
	
      @on_bridge_data_obj = obj
      @on_bridge_data = Proc.new { |device, obj_ptr, index, value|
	    yield self, @inputs[index], value, object_for(obj_ptr)

	}
      Klass.set_OnBridgeData_Handler(@handle, @on_bridge_data, pointer_for(obj))
    end
Sets a bridge data handler callback function. This is called at a set rate as defined by {Phidgets::Bridge#data_rate}

 @param [String] obj Object to pass to the callback function. This is optional.
 @param [Proc] Block When the callback is executed, the device and object are yielded to this block.
 @example
     bridge.on_bridge_data do |device, input, value, obj|
       puts "Bridge Index  #{input.index}, value: #{value}"
     end
 As this runs in it's own thread, be sure that all errors are properly handled or the thread will halt and not fire any more.
 @return [Boolean] returns true or raises an error