Has anyone worked out a good way to select a serial port on the settings page?
The most user friendly selector would be the Dropdown Select List. The issue I run into though is that it saves the index and not COM4. The list of serial ports is not static as I may plug in a USB serial device that causes the list to change and on the next startup of the plugin to select the wrong port.
I could display of list of available ports in a label and have the user type it in to a text input. That works reliably, but not friendly.
I'm tempted to move the selection to the device configuration page where I have more control over the display. That would work for some plugins anyway.
I played with some hacks. Using the dropdown and then saving the port name in the root device PED may be a good alternative, but the settings page could still show COM3 when the plugin is using COM4, so the selector has to be hidden until a Change button is clicked or something.
Any suggestions?
The most user friendly selector would be the Dropdown Select List. The issue I run into though is that it saves the index and not COM4. The list of serial ports is not static as I may plug in a USB serial device that causes the list to change and on the next startup of the plugin to select the wrong port.
I could display of list of available ports in a label and have the user type it in to a text input. That works reliably, but not friendly.
I'm tempted to move the selection to the device configuration page where I have more control over the display. That would work for some plugins anyway.
I played with some hacks. Using the dropdown and then saving the port name in the root device PED may be a good alternative, but the settings page could still show COM3 when the plugin is using COM4, so the selector has to be hidden until a Change button is clicked or something.
Any suggestions?
Comment