Enrique Nivasch 0 Newbie Poster

Hi,

I’m writing a program in Java that uses rxtx for serial communications. Every time I start the program the communications object has to look for a specific port, acquire it, open it and only then can I start using it. The first part of the process, looking for the port, takes a long time so I was thinking of saving in a file the CommPortIdentifier type variable that identifies the port so I won’t have to look for it. I tried saving it using Serializable but CommPortIdentifier is not Serializable. Any ideas how I can save the variable?


Thanks,

Enrique

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.