When a MIDP application wants to initiate a bluetooth connection with a server, it can initiate a device inquiry, and obtain a list of remote bluetooth devices in the area. The software that I'm currently developing needs to keep track of all the devices that my program has connected to in the recent past.
When I initiate a client connection, this is easily done, because I can just store all the RemoteDevices that are returned in the deviceDiscovered() method. However, a problem arises when I need to do the same at the server side.
When a server waits for a connection, it makes a call to
After the connection has been established, is it possible to retrieve the RemoteDevice somehow so that I can add these devices to my software's recently-connected device list? Please do let me know if there is a way. Thanks!Code:conn = server.acceptAndOpen()