/** * * ConstrUCtor * * @param PortID the ID of the serial to be used. 1 for COM1, * 2 for COM2, etc. * */
public SerialBean(int PortID) { PortName = "COM" + PortID; }
/** * * This function initialize the serial port for communication. It starts a * thread which consistently monitors the serial port. Any signal captured * from the serial port is stored into a buffer area. * */