You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The requestPort() method shows the user a list of devices that match options.filter and it is only the one selected by the user that is returned. It is possible that an options.multiple flag could be added to indicate that the user is allowed to select multiple devices.
If I added the ability to allow multiple ports to be selected I would probably change the return type only when that flag was passed. Always returning a sequence makes it harder for developers in the common case.
reillyeon
changed the title
what should happen when getting a port for requestPort gives multiple results?Apr 19, 2021
Should the first
SerialPort
be returned if multiple are found that matchoptions.filter
(or no filter passed)?The text was updated successfully, but these errors were encountered: