You Are Here:

Community: Developer Discussion Boards

#1 Old Bidirectional Communication over BT. How? - 2004-06-21, 17:15

Join Date: Feb 2004
Posts: 8
jurthe
Offline
Registered User
Hi,
I try to establish a bi-directional communication over Bluetooth in a MIDlet. I open a server connection using the following code:

notifier = (StreamConnectionNotifier) Connector.open(serviceURL, Connector.READ_WRITE);

streamConnectionIn = (StreamConnection) notifier.acceptAndOpen();

inputStream = streamConnectionIn.openInputStream();

Is there any way to extract the address of the device that connected to the service in order to open a connection back to the client?

Thanks in advance,
Sascha.
Reply With Quote

#2 Old 2004-06-22, 14:28

Join Date: Jun 2004
Posts: 10
Killer_2001
Offline
Registered User
excerpt from the javadoc of RemoteDevice:

static RemoteDevice getRemoteDevice(javax.microedition.io.Connection conn)

Retrieves the Bluetooth device that is at the other end of the Bluetooth Serial Port Profile connection, L2CAP connection, or OBEX over RFCOMM connection provided.

hth

Killer_2001
Reply With Quote

#3 Old 2004-06-22, 14:34

Join Date: Feb 2004
Posts: 8
jurthe
Offline
Registered User
Hey - that's a good idea!! Thanks, I will try this...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia