Reading input stream of bluetooth socket


I am trying to read a input stream of bluetooth socket without knowing the size of available data in the stream. There is only one function isDataAvailable() which tells us that data is available in the stream, but not the size. Length is not yet implemented in Xamarin.

Is there any way to read the all available bytes from the input stream without knowing the size?

I don't want to use a big buffer, because that will limit the reading of bytes till size of buffer. I want to read the stream without big buffer.

Vishal N


  • FalappiCardiolineFalappiCardioline ITMember ✭✭

    into the BluetoothSocket.InputStream.Length you can know the size BUT in my test this raise NOTImplemented exception...

Sign In or Register to comment.