Progress with bluetooth

Davide Varvello d.varvello at
Tue Jan 17 13:33:57 UTC 2006

Hi All,
  Other progress with bluetooth.
As I don't like to use the GUI to interface my bluetooth devices, I  
explored more the IOBluetooth.framework to start a device discovery.  
Here the code:

bundle := NSBundle bundleWithPath:'/System/Library/Frameworks/ 
bundle load.

inquiry := (bundle classNamed:'IOBluetoothDeviceInquiry') new.

inquiry start.
inquiry stop.

someDevices := inquiry foundDevices.
someDevices count.
bluetoothDevice := someDevices objectAtIndex:0.

It's simple and clean, isn't it?
Now, the next step is to start a communication. I'll update you next  


More information about the Squeak-dev mailing list