def wait_for_attachment(wait_time=1000)
	
      Phidgets::FFI::Common.waitForAttachment(@handle, wait_time)
	  if attached?
		load_device_attributes
	  end
	  
      true

    end
def wait_for_attachment(wait_time=1000)
	
      Phidgets::FFI::Common.waitForAttachment(@handle, wait_time)
	  if attached?
		load_device_attributes
	  end
	  
      true

    end
This method can be called after the Phidget object has been created. This method blocks indefinitely until the Phidget becomes available. This can be quite some time (forever), if the Phidget is never plugged in. Please note that this call is not needed if you are programming inside a block. If you are programming inside a block, you can specify the wait time in the {Phidgets::Common#initialize} constructor

 @param [Integer] wait_time Time to wait for the attachment. Specify 0 to wait forever. This is Optional. The default wait time is 1000 milliseconds.
 @return [Boolean] returns true or raises an error