SerBreak
| Description: | Sends a break character to a serial port. |
| Returns: | Nothing |
Usage: ![]() |
Script Only. |
| Function Groups: | Serial Port |
| Related to: | COMPort | SerCheck | SerialStream |
Format: ![]() |
SerBreak(Port, Status) |
| Parameters: |
| Port |
| Required. Any numeric expression for the serial port number (opened with a ComPort function) or serial stream value (returned from a SerialStream function). |
| Status |
| Required. Any logical expression. If true (non-0), a break will be sent to the serial port defined in Port, if false (0), the break will be cleared from the serial port. |
Example:
If MatchKeys(1, MakeBuff(1, 27) { <ESC> key pressed }) BreakSent;
[
SerBreak(4, 1);
]
The above code causes a break to be sent to serial port 4 if the user presses the <ESC> key.
