@SERIALPORTWRITE |
@SERIALPORTWRITE[n,text]: Writes a string to the serial port. n is the handle returned by a previous call to @SERIALPORTOPEN. Returns 1 if the write succeeded, or 0 if it failed.
Example:
set port=%@serialportopen[com1,9600]
set string=%@serialportread[%port]
echo %@serialportwrite[%port,Goodbye!"
echo %@serialportflush[%port]
echo %@serialportclose[%port]