|
|
|
|
|
- Using an external library: RXTX
sInEntryQueue (Function) In french: sDansFileEntrée Retrieves the number of pending bytes in the input buffer of a specified serial port or infrared port. Remarks: - This function cannot be used with a parallel port.
This function returns information regarding the server. Infrared ports are not supported. Only serial ports are supported.
NumPort is int
NumPort = sOpen("COM4", 2000, 2000)
Nombre is int
MessageLu is string
Nombre = sInEntryQueue(NumPort)
MessageLu = sRead(NumPort, Nombre)
Syntax
<Result> = sInEntryQueue(<Port number>)
<Result>: Integer - Number of pending bytes in the input buffer of the specified port,
- 0 if the function failed. The ErrorOccurred variable is set to True if an error occurred on the port (parity bit for example). The error details are returned by ErrorInfo.
<Port number>: Integer Port number to use: - Serial port number: 1, 2, 3, ... 32 for COM1, COM2, COM3, ... COM32.
- Infrared port number: 1, 2, 3, ... 32 for IR1, IR2, IR3, ... IR32.
The management of infrared ports is not available in Java. - Port number returned by sOpen (if this function was called with a port name).
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|