Now I am able only to send data from server to client. I put it into OutputStream on server and receive from InputStream on client.
Is it any way to do it in another direction? I haven't found anything about that on android.com or any other resources.
public void connectBTSerial(BluetoothDevice bdev){
BluetoothSocket bSocket = bdev.createInsecureRfcommSocketToServiceRecord(UUID.fromString(SOME_UUID));
bSocket.connect();
InputStream in = bSocket.getInputStream();
OutputStream out = bSocket.getOutputStream();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.