write to the serial port
result = writeserial(h,buf)
string, Tcl handle to the serial port
string to be output
0 if write is successful, -1 if unsuccessul
No end of line character is appended to the string; the user might have to
add it if the device being talked to requires it. The Tcl command
puts -nonewline
is used. In addition, the translation mode of openserial
can come into way.
h=openserial(1,"9600,n,8,1") writeserial(h,"#02"+ascii(13)) readserial(h) closeserial(h)