I've got an application that acts as a sever accepting clients via bluetooth. I use the follwing code to get the application to accept clients.
// 1. Connect to the socket server
// 2. Open a socket
// 3. Set up address object
addr.SetPort(KListeningPSM); //defined elsewhere
// 4. Begin to listen
// 5. Wait for connection
The application works fine. The only problem is that battery fails after about 24 hours, even though no one connects. Does any one have any clues as to why the battery could be dying so quickly? If I close the application, the phone lasts several days.
Thanks in advance!