choosing a RFCOMMChannel channelID ?
choosing a RFCOMMChannel channelID ?
- Subject: choosing a RFCOMMChannel channelID ?
- From: Aurélien Hugelé <email@hidden>
- Date: Thu, 24 Jun 2004 14:45:57 +0200
hi !
i'm creating a simple BlueTooth phone number dialer/SMS manager. I've
succeeded creating a RFCOMMChannel to my T68i and i have avoided using
/dev/modem unix style device connection.
here is how i open the RFCOMMChannel :
[mainBTDevice openRFCOMMChannelSync:&modemConnectionChannel
withChannelID:1 delegate:self];
the problem is how to choose my channelID: i have tried to do like
Apple with their chat client/server example but it does not really work
in my case because i do not need to publish a service...
i've tried random channel from 0 to 10, only the channel from 1 to 5
seems to work for me to connect to my T68i modem.
How am i supposed to choose the channelID ? is it a manufacturer
document ? can i be sure the channel is available and not already in
use ? am i supposed to scan channelID until connection succeed ?
Apple documentation is really poor an the subject, or i did not found
it !
thanks !
_______________________________________________
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.