IOReturn documented somewhere?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com User-agent: Microsoft-Entourage/9.0.6.8320 I am just migrating to the Bluetooth RFCOMM C-API rather than using POSIX serial ports and I am very happy, I should have done that earlier. One of the arguments given in http://developer.apple.com/documentation/DeviceDrivers/Conceptual/Bluetooth/
Overview of Bluetooth Application Types > Accessing Serial Ports: All Bluetooth-specific errors are reported as a failure to open the serial port.
Correct but where are the errors documented? In the headers only success is described but not all possible errors. I played a bit with IOBluetoothDeviceOpenRFCOMMChannel and it looks like I get zillions of possible errors. For example I got a 0x22 when the pairing timed out. In Bluetooth.h there is a kBluetoothHCIErrorLMPResponseTimeout which fits. If the pairing key was wrong I got 0x05, is that kBluetoothHCIErrorAuthenticationFailure? Then sometimes I get negative numbers (rejected connection; missing pairing key). If the device is not reachable I get 0x04. Is that kBluetoothHCIErrorPageTimeout? Its great to have such fine grained errors (down to the HCI) but I rather would like to know where (headers) all the possible errors are listed: IOReturn.h IOBluetoothTypes.h Bluetooth.h Correct? _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Alexander Traud