This repository was archived by the owner on Jun 6, 2018. It is now read-only.

Description
I'm trying to use ruby-ble to connect to a Sphero BB8. Using this library, I'm able to detect the device, but connections always fail. I keep getting
device = BLE::Device.new('hci0', 'D4:3B:0A:0C:3E:51')
device.connect
Which gives me:
BLE::NotReady: BLE::NotReady; caused by 4 sender=:1.123 -> dest= serial=529 reply_serial= path=/org/bluez/hci0/dev_D4_3B_0A_0C_3E_51; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged error_name= from /home/ryan/.rvm/gems/ruby-2.3.0/gems/ble-0.1.0/lib/ble/device.rb:374:inrescue in refresh!'
`
In the past, I was able to use gatttool to connect. In order to do so, I had to set my address type to random, and security level to medium. I can't seem to replicate that anymore (I reinstalled my OS recently, and for whatever reason gatttool isn't behaving the same).
Any ideas on what I would need to change in order to connect to this device? Am I doing something wrong, or is there no way to connect via DBus with additional parameters?