I have a problem that should be easy but I do not find the solution to it.
My program connects to another Bluetooth device and I do:
//CurrentService is of type RemoteService
Stream connectedStream = currentService.Stream;
connectedStream.BeginRead(m_buffer, 0, m_buffer.Length, new AsyncCallback(readCallback), connectedStream);
The currentService has been received after a normal inquiry/service search and this works witout any problem. However the next time I start the program I want to be able to skip the search and go directly to the connect. So my question is how to get the Stream?
My first thought was to try to serialize the RemoteService or the ServiceStream but the objects do not support serialization.