Astring = stream:read(max), Stream:write(astring), Aninteger = stream:available() – ClearOne Writing StreamNet User Manual
Page 37: Writes data from a string to the stream
Reference
9-7
All specifications subject to change without notification. All rights reserved. Copyright © 2007 NetStreams
Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496
3600 W. Parmer Lane, Suite 100; Austin, TX 78727 /
www.netstreams.com.
NOTE
In the case of the socket protocol, no options are currently supported.
In the case of the comm protocol, the following options may be specified:
aString = stream:read(max)
Reads data from the stream and returns it in the form of a string. If max is specified, no
more than max characters will be returned. This call will never block, but rather will
return whatever data is immediately available up to the specified maximum.
Mixing synchronous
input via read and
asynchronous input via
startAsyncInput will
yield inconsistent and
variable results. If
mixing is required,
async input should
always be stopped via
stopAsyncInput before
read is used.
stream:write(aString)
Writes data from a string to the stream.
anInteger = stream:available()
Returns the number of bytes of data immediately available on the port.
Key
Value
Default
baud
300,1200,2400,9600,19200
9600
parity
odd,even,none
None
bits
8
8
stop
1
1