First of all thank you very much for the great work you are doing on this project!
I am currently trying to publish timestamps on the raspberry pi and subscribe to them on my windows based PC. For this, I connected BOTH the Raspberry Pi and the Windows PC to a Switch. So, if I start the publish sample on the Raspberry Pi, I can already see the incoming UDP multicast packages in Wireshark on my Windows PC. So theoretically, the subscribe application also should be able to receive the packages and print them out to the console. But that is not the case. The subscribe sample does NOT print out any timestamps to the console which means, it does not receive any UDP multicast packages.
I have already tried out the suggestion from Julius Pfrommer and specified a network interface.
In order to find the correct network interface name, I typed in "ipconfig /all" and looked it up
I am pretty sure it is the "Ethernet-Adapter Ethernet 3". And I can kind of confirm this by looking it up on wireshark (as the "Ethernet 3" interface is the only one on which I receive the UDP multicast packages):
Therefore, I specified the network interface by changing your suggested line to:
`UA_NetworkAddressUrlDataType networkAddressUrl = {UA_STRING("Ethernet 3"), UA_STRING("opc.udp://
224.0.0.22:4840")};`
I tried it both with the pubsub_subscribe_standalone and with the tutorial_pubsub_subscribe.c.
But in both examples, it prints out a warning that there was a problem with creating the PubSub Connection and that the network interface selection failed. Afterwards however, it successfully creates a PubSub Connection. But obviously not with my specified network interface (because I still cannot receive any UDP multicast packages).
What can I do to solve this problem? I know the packages are there on my pc, I see them on Wireshark, so why isn't the subscribe sample working? It is working if I run the publish example on the PC as well.
Thank you for any help you can possibly give me! I really appreciate it!
With kind regards,
Theresa Lichtenberger