B4J Question Serial Port name

mrossen

Active Member
Licensed User
Longtime User
Hi,

Is it possible to get "user friendly" Port name from the jSerial

When I use

B4X:
cmbPort.Items.AddAll(Serial1.ListPorts)

I Only get the port numbers I can use.

Mogens
 

Gaver Powers

Member
Licensed User
Longtime User
I'm trying to connect to two different devices - a weight scale and a bar code scanner.
Both are connecting to windows using a Virtual COM port.
I do not know which port each device is assigned to, and it's possible the port assignments can change.
I don't think hard coding the port assignments in B4J is going to work...

Is there anyway to enumerate the COM connections with a meaningful description that can be used to handle input from the specific device(s)?
 
Upvote 0
Top