VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。
@COMM
Windows ✓Linux ✓macOS ⏳
Syntax
@COMM(GET)
@COMM(GETLINE)
@COMM(ERROR)
Requires
EXTERNAL VDSCOM60.DLL
#DEFINE FUNCTION,COMM
Description
This function is used to read the data received from the serial port after a COMMEVENT event occurs, or to obtain an error message when an error occurs. The options are:
| GET | Returns a string containing all the text that has been received. |
| GETLINE | Returns the next line of text received. |
| ERROR | Returns a description of the last error. |
OK
Set to false if there is no data (or not a complete line of text) to receive.