-
Notifications
You must be signed in to change notification settings - Fork 53
Don't expose USB serial port details #227
Description
The API currently proposes that the API reveal details of the vendor and device identifier of a USB serial port adapter in two ways:
- As part of the filtering logic when a port is requested.
- Through information revealed about the port when one has been obtained.
In neither case is this relevant information. The information that is relevant to what people might want to achieve is not available. That is to say: the identity of the thing that is plugged into the other end of the cable.
In the interests of YAGNI, I suggest that this information be removed from the API. In both requestPort() filtering and getInfo().
I understand that there might be some circumstances in which a USB-attached serial interface might cause problems that sites are aware of, but that is an internal matter for the host system. There is also the possibility that there are "serial" devices that are fused into a single unit, where the identity of the serial port is really the identity of the device and so knowing the identity of the port gives you the identity of the device. Neither case seems cause enough to justify breaking the rules here.