Please enable JavaScript to view this site.

CMDebug / TCC-RT Help v. 28

@SERIALPORTREAD[n]:  Return the contents of the serial port buffer. n is the handle returned by a previous call to @SERIALPORTOPEN.

 

Example:

 

set port=%@serialportopen[com1,9600]

set string=%@serialportread[%port]

echo %@serialportwrite[%port,Goodbye!"

echo %@serialportflush[%port]

echo %@serialportclose[%port]