site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Thread-index: AcYgDXg0twXatowAEdqyTwAKlXc8vA== Thread-topic: I cant get service name User-agent: Microsoft-Entourage/11.2.1.051004 First, I'm new to Bluetooth programming so I'm sorry if I'm making a obvious mistake here but I don't think so. Please advise if so... In the path of a current project I'm trying to sort out the small details first, and I'm going through old code that has been given to me, to get me started so to speak. In this code I add a service that is defined in a .plist-directory file. I then try to get the name of the service but I get EXC_BAD_ACCESS when I call /IOBluetoothSDPServiceRecordGetServiceName/ This is how I do it: CFPropertyListRef HIDServiceDict = CreateHIDDictionary(); // reads .plist file and creates the dict, as far as I can tell it works all right result = IOBluetoothAddServiceDict( (CFDictionaryRef) HIDServiceDict, &HIDServiceRecord); if(result == kIOReturnSuccess) result = IOBluetoothSDPServiceRecordGetServiceRecordHandle(HIDServiceRecord, &HBHIDServiceRecordHandle); if(result == kIOReturnSuccess) // next line is where I get in to trouble! CFStringRef ServiceName =IOBluetoothSDPServiceRecordGetServiceName(HIDServiceRecord)); Should this work? / Johan _______________________________________________ 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)
-
Johan Malmström