-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovery Example #4058
Comments
If you are using Eclipse for development, make sure you use the open62541.c in the same folder as the src. |
Hey @RakshanPremsagar, first of all, thank you for your help! |
oh sorry, I am using linux, and I remember getting the same issue.. and it was fixed by adding the open62541.c file to the src folder. The LDS got working |
hey, have you managed to get it working? |
Hello @twolf-afk,
Well seems like you are missing build arguments for discovery service. Please make sure that you have set these arguments to 'ON' while building open62541.
Actually, DISCOVERY_SERVER_ENDPOINT is defined in server_register.c here, it is not possible to say something about the error w/o seeing your example code. But again |
Hello @cmbahadir , |
Hello @RakshanPremsagar No, as far as i can say its not required if the registration is not managed over semaphore files. |
Hello @cmbahadir , I have a lds running(server_lds.c) and then I have another server(multicast.c) running on my system. The multicast server registers with the LDS and everything is fine. When i run the findServersOnNetwork code, I see both the servers. However, when I close the multicast server, it should get deregistered from the LDS. I get TXT and PTR entries on the wireshark log as a result. PS: All the codes i mentioned are in the example/discovery section of the stack |
Well, i guess a separate issue with required logs, traces and used version would be better for your problem. Because, it seems like a separate topic. I am not really familiar with discovery server architecture, so i can't answer your questions directly. |
The reason for the missing structure member is you forgot to run |
Implementing a Local Discovery Server
I want to implement a local discovery server and have worked on the example in open62541 Discovery Example.
config->mdnsConfig.serverCapabilitiesSize = 1;
This line is from the server_lds.c file and the error message is, that
UA_ServerConfig
doesn't have a membermdnsConfig
// periodic server register after 10 Minutes, delay first register for 500ms
UA_UInt64 callbackId;
UA_StatusCode retval = UA_Server_addPeriodicServerRegisterCallback(server, clientRegister, DISCOVERY_SERVER_ENDPOINT, 10 * 60 * 1000, 500, &callbackId);
Those four lines are from server_register.c where the server is registered at the LDS. The error message here is:
UA_Server_addPeriodicServerRegisterCallback
andDISCOVERY_SERVER_ENDPOINT
are not defined.So my question is, where can I find a working LDS example and how can I register my OPC UA Server?
It will help me a lot, if anyone has an idea on how to solve this !!
The text was updated successfully, but these errors were encountered: