@SERIALPORTFLUSH |
@SERIALPORTFLUSH[n]: Flush the contents of the serial port buffer. n is the handle returned by a previous call to @SERIALPORTOPEN. Returns 1 if the flush 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]