-
Notifications
You must be signed in to change notification settings - Fork 174
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
Problem: cannot receive the first message from server #1012
Comments
Hi @lin0303-siyuan, tl;dr: eCAL always needs a little time to start up. By default, 1 seconds. If you sleep >1s before publishing your first message, you should receive it. Long explanation
In order to have a successful connection from a publisher to a subscriber, the following information have to be exchanged:
Only after these information have been exchanges successfully, the data communcation can start. The metadata is however only transmitted once every 1s. Therefore, if you call You should easily be able to work around this, by adding a delay between the instantiation of your publisher and the first Kind Regards |
Really appreciate your answer, it solved my problem. It's such a nice explanation. |
Problem Description
When I try the online tutorial sample, I built a client and a server side. It happens that the client cannot get the message from server under any condition. I try to start client first and start server first instead, none of them works. I don't know why. I know that if the callback function doesn't process as fast as server sends the message, there will be a message drop. But I let the server sends message at a much lower frequency. See the code below. So can anybody help me out of it? Really appreciate it.
Client (subscriber) code
Server (publisher) code
How to reproduce
The client would never receive the first message: "Received Message: Hello World 1"
How did you get eCAL?
Ubuntu PPA (apt-get)
Environment
eCAL System Information
No response
The text was updated successfully, but these errors were encountered: