| Reply | « Previous Thread | Next Thread » |
|
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. |
|
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 |
| Killer_2001 |
| View Public Profile |
| Find all posts by Killer_2001 |
|
Hey - that's a good idea!! Thanks, I will try this...
![]() |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|