IOBluetooth questions
IOBluetooth questions
- Subject: IOBluetooth questions
- From: gnat <email@hidden>
- Date: Wed, 21 Jul 2004 15:58:36 -0400
Hello,
Anyone know of a good (or more than one) resource for how to use the
IOBluetooth API in Objective-C. The main thing i'm looking for is how
to find available devices without using the GUI functions (i.e. i'm
working on a command line tool).
In general I have an perl/Apple Script that does the following to get
info to my non-iSync compatible phone via the Bluetooth File Exchange
App. I want to move the functionality to a single non-UI binary so I
can cron it:
1) Check a local cache (want to read what's on the phone, but i'm going
for little steps) against my iCal and save each event that hasn't
already been sent to the phone as a separate file (the phone doesn't
seem to like calendar files with multiple entries) as well as adjust
the format.
2) Generate an apple script that:
a) Starts BT File Exchange
b) sends each file
c) quits BT File Exchange
Besides the taking over my UI issues, it also has some other issues in
regards to timing and not being able to catch errors properly. So I
want to write my own app to do it in the back ground. I have found
examples of sending/getting information once the connection is
established, but besides calls to the device chooser I haven't seen how
to get the devices in an Array/Dictionary/something else. I want to do
the following:
1) During setup, prompt the user to select a device(s) from those in
range and save the ID(s) to a config file.
2) During a run, startup and check to see if the selected devices are
in range.
a) If so, do work.
b) If not, quit.
Thanks,
-dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.