我尝试从Milo OPC存储库运行一个示例服务器,并将PLC作为端点放入PLC的ip。在设备中,设备名称为“MI_027859”。
19:18:36.748 [main] WARN o.e.m.o.stack.core.util.EndpointUtil - Endpoint URL 'Illegal character in hostname at index 12: opc.tcp://MI_027859:12686/MI_027859' is not a valid URI: {}
java.net.URISyntaxException: Illegal character in hostname at index 12: opc.tcp://MI_027859:12686/MI_027859
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.parseHostname(URI.java:3387)
at java.net.URI$Parser.parseServer(URI.java:3236)
at java.net.URI$Parser.parseAuthority(URI.java:3155)
at java.net.URI$Parser.parseHierarchical(URI.java:3097)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.parseServerAuthority(URI.java:915)