use of com.infiniteautomation.mango.io.serial.SerialPortIdentifier in project ma-core-public by infiniteautomation.
the class BaseDwr method refreshCommPorts.
@DwrPermission(user = true)
public Set<String> refreshCommPorts() throws Exception {
Set<String> portNames = new HashSet<String>();
Common.serialPortManager.refreshFreeCommPorts();
List<SerialPortIdentifier> ports = Common.serialPortManager.getAllCommPorts();
for (SerialPortIdentifier proxy : ports) portNames.add(proxy.getName());
return portNames;
}
Aggregations