Re: IOBluetoothNSStringToDeviceAddress
Re: IOBluetoothNSStringToDeviceAddress
- Subject: Re: IOBluetoothNSStringToDeviceAddress
- From: Marco Pontil <email@hidden>
- Date: Mon, 20 Jan 2003 10:21:36 -0800
Hi Julien,
IOBluetoothNSStringToDeviceAddress does not allocate a
BluetoothDeviceAddress, it just
fills it up , so It should be:
devAddressString=@"00-08-c6-13-45-e9";
BluetoothDeviceAddress devAddress;
IOBluetoothNSStringToDeviceAddress(devAddressString,
&devAddress);
.. Marco
On Monday, January 20, 2003, at 08:47 AM, julien genestoux wrote:
Hi everyone...
I'm just trying to build and run a small App I made using BT
:IOBluetoothUtilities.h and particularly this function
IOReturn IOBluetoothNSStringToDeviceAddress( NSString * inNameString,
BluetoothDeviceAddress * outDeviceAddress );
But it seems it's not working, does someone experienced problems with
it?
here's my code :
NOte that the device address was obtained previously : so it's good.
devAddressString=@"00-08-c6-13-45-e9";
BluetoothDeviceAddress * devAddress=nil;
NSLog(devAddressString);
IOBluetoothNSStringToDeviceAddress(devAddressString,
devAddress);
BtDevice=[IOBluetoothDevice withAddress:devAddress];
NSLog(@"the new name %s ",[BtDevice getName]);
here's what happens:
00-08-c6-13-45-e9
the new name (null)
And it bugs if I want to obtain the new device Address'
Thanks for helping...
Julien Genestoux.
Portable: 06 89 65 09 01
Web: www.jobetudiant.net/julien
MSN: email@hidden
AIM: email@hidden
Mails: email@hidden
email@hidden
VCard:
[demime 0.98b removed an attachment of type text/directory which had a
name of julien genestoux.vcf]
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.