Thank you very much for your help.
I tried you example
<http://stackoverflow.com/questions/13965861/bluetooth-programming-on-macos>
void connectToDevice(IOBluetoothDevice *device)
{
IOBluetoothOBEXSession *session = NULL;
IOBluetoothSDPServiceRecord *record = NULL;
record = [device getServiceRecordForUUID:[IOBluetoothSDPUUID
uuid16:kBluetoothSDPUUID16ServiceClassSerialPort ]];
[record retain];
session = [IOBluetoothOBEXSession withSDPServiceRecord:record];
OBEXFileTransferServices *service = [OBEXFileTransferServices
withOBEXSession:session];
[service retain];
BluetoothFTPService *d = [[BluetoothFTPService alloc] init];
[service setDelegate:d];
[service connectToFTPService];
CFRunLoopRun();
}
And it doesn't work.
It works only if I change kBluetoothSDPUUID16ServiceClassSerialPort to kBluetoothSDPUUID16ServiceClassOBEXFileTransfer, but in that case it's a normal file transfer operation which doesn't list messages folder (it uses the service record named "OBEX File Transfer" and not "Nokia PC Suite").
It seems that OBEXSession is not able to connect to Nokia PC Suite service even if I use a target uuid.
I just wonder why.
the SessionEvent type is kOBEXSessionEventTypeError
the serverResponseOpCode is 0x88 (?)
the errorData error is -21880 (kOBEXSessionTransportDiedError)
Is it possible that I miss some extra information in the headers I send?
I tried with target, then with target and who.
Besides, the target I use is "f9ec7bc4-953c-11d2-984e-525400dc9e09".
Do I have to create my own OBEX client?
The fact is that I don't know where to start… can you give me some hint?
Thank you in advance,
regards,
livio.