Can someone explain to me how Bluetooth actually works when connecting an Android device to another one.
Here is what I think I know.
I have two devices.
One will be a client and the other the server, depending which initiates the connection. The Android device will do a search for devices in Discoverable Mode. The Android device can list previously paired devices.
A BluetoothSocket
is opened to create the connection between the devices.
Data can now be transfered
Socket can be closed when completed
Question : if a device shows that there is a connection with a LED, should that LED flicker once the BluetoothSocket.connect()
is called.
Is there anywhere I can find literature on how it works ect..
The reason for this question is due to my earlier post :
Android Bluetooth Connecting Error
I'm not sure If i am actually connected or not. The Android documentation says there is a boolean called BluetoothSocket.isConnected() but I dont seem to be able to find it. so I cant figure out if I am actually connected or not, and I dont know after "being connected" if I can just start sending data.