Zitat:
Original geschrieben von jopp
1. wenn ich einen SerialPort öffne, z.B.:
CommPortIdentifier cpi;
SerialPort com1 = (SerialPort)cpi.open("COM1", 1000);
wofür steht das 1000?
|
Nachzulesen im
Communications API :
open
public CommPort open(java.lang.String appname,
int timeout)
throws PortInUseExceptionOpens
Parameters:
appname - Name of application making this call. This name will become the owner of the port. Useful when resolving ownership contention.
timeout -
time in milliseconds to block waiting for port open