- Bluetooth in 4.0 has a couple of new profiles: HID (meh) and.. Braille. Wait, what's exciting about Braille? Two things:
- It is one of the three services that call OpenSerialPort()
- It is the only one of them that
isn't handled by OSisn't generally handled by the OS, unless you enable some obscure accessibility feature, unlike WiAP and Nike sensor profiles, meaning there are no side effects to connecting the service to arbitrary BT devices with serial profile.
extern "C" int BTDeviceGetComPortForService(BTDEVICE device, int svcIdOrSmth, char*buf, int cbBuf);
gets the COM pipe (e.g. /dev/ttys003)
Sample code: http://code.google.com/p/iphone-bluetooth/
Also (still?) works in current 4.1 beta ;)