11-04-2013 03:38 PM
I have struggling for hours but still can't solve this problem.
I accept a connection on my bt server through the callback, do some processing with the socket and then release resources.
My problem is that I cannot reconnect to the bt server again unless I call bt_spp_open_server again. Is this correct - do I have to recreate the server again after each connection is finished with?
Sometimes, even after calling bt_spp_open_server again it fails to open the server again even though I have called bt_spp_close_server.
I create a thread to send/receive data to bt client as advised in docs.
11-05-2013 07:25 AM
Has anyone used bt_spp_open_server before?
Do I have to restart the server after each connection? Do I close int fd once I am finished with it?
I have tried everything but still cant reconnect to the bt server unless I close the server and then reopen it but then even reopening the server fails sometimes after closing it.
At a loss but I really need a consistent bluetooth server.
11-07-2013 03:20 PM
11-07-2013 03:27 PM
You should close the server if you want to use it again.
Check out the sample written by the bluetooth dev team;