BlueLibs documentation

BTConnection.WaitForData Method 

The method block till data is available for reading (writting) or the timeout is finished

[Visual Basic]
NotOverridable Public Function WaitForData( _
   ByVal ms As Integer, _
   ByVal ForRead As Boolean _
) As Boolean _
    Implements Connection.WaitForData
[C#]
public bool WaitForData(
   int ms,
   bool ForRead
);

Parameters

ms
milliseconds to wait
ForRead
wait for data to arrives (true) or wait for send

Return Value

if operation was successful. returns false if timeout elapsed

Implements

Connection.WaitForData

See Also

BTConnection Class | BlueLibs Namespace