w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android - Bluetooth Printer not finished printing but throws IOException: Socket Closed

What happpend if you put a Thread.sleep(2000) right before the socket.close()?

I work on bluetooth SPP and I had the same issue (Socket close before the end of data transfer). I think that the broadcast of socket.close() is faster than the transmission of the data, then all the data are not analyze by the BT printer when the close request is send





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.