![]() openPort public final boolean openPort(int safetySleepTime,int deviceSendQueueSize,int deviceReceiveQueueSize). Throws: - If a object cannot be created due to a logical or formatting error in the portDescriptor parameter. Parameters: portDescriptor - The desired serial port to use with this library. On Linux machines, the descriptor will look similar to '/dev/tty.'. getCommPort public static getCommPort( portDescriptor)throws.Īllocates a object corresponding to the user-specified port descriptor.On Windows machines, this descriptor should be in the form of 'COM.'. Likewise, should be called when you are finished accessing the port.All serial port parameters or timeouts can be changed at any time after the port has been opened. ![]() ![]() ![]() Returns a list of all available serial ports on this machine.The serial ports can be accessed by iterating through each of the SerialPort objects in this array.Note that the method must be called before any attempts to read from or write to the port.
0 Comments
Leave a Reply. |