java - Configuration OPC UA Server (Milo)? -


i've checked out eclipse milo project (https://projects.eclipse.org/proposals/milo), seems great project "open" opc ua client/server implemented opc stack. project on github (https://github.com/eclipse/milo) contains hello world example, opc server started , example node sent , received client. works fine!

but in next step, wanted check if server configured correctly. therefore i've installed matrikon explorer, explorer stating out "no opc servers installed on machine" right after start (while hello world example running opc server running of course).

also checked, if sap plant connectivity recognizing opc server (which goal of project) -> "found no opc server on system/localhost"

where problem, have do, install , configure server correctly?

here's hello world example:

public static void main(string[] args) throws exception {     // start server      int port = 12686;     string servername = "test-server";     opcuaserverconfig serverconfig = opcuaserverconfig.builder()         .setbindport(port)         .setcertificatemanager(new defaultcertificatemanager())         .setcertificatevalidator(new defaultcertificatevalidator(createtempdir()))         .setservername(servername)         .setusertokenpolicies(singletonlist(user_token_policy_anonymous))         .build();      opcuaserver server = new opcuaserver(serverconfig);      server.getnamespacemanager().registerandadd(         "urn:eclipse:milo:opcua:test-namespace",         idx -> new hellonamespace());      server.startup();      while(true){         system.out.println("server running");     } } 

matrikon explorer opc-com/da client, , interrogating opc enum service in order find registered com clients.

opc-ua entirely different, platform independent, technology. concept of registration still exists, it's not forced default.

try using opc-ua client uaexpert connect. given configuration you've copied, you'll want point uaexpert @ endpoint url opc.tcp://localhost:12686/test-server

i'm guessing there issue once connect partially implemented "hello world" namespace. i'll make sure usable namespace example committed week.

you can @ opcuaclientit integration test class various client functionality , example of setting server.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -