Skip to content
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

Linking sent message to received acknowledgement #558

Open
nikolayP4 opened this issue May 22, 2023 · 4 comments
Open

Linking sent message to received acknowledgement #558

nikolayP4 opened this issue May 22, 2023 · 4 comments
Labels
question Further information is requested

Comments

@nikolayP4
Copy link

Hi,
Is it possible in the current version of the library to link sent mesh message and the acknowledgement for it?
And if possible, could you explain how to do it as I didn't found any information on that.
Thank you in advance!

@roshanrajaratnam
Copy link
Member

Hi this is handled by the library itself. The library holds a reference tot he last sent message. Check

What do you plan to achieve?

@nikolayP4
Copy link
Author

I would like to log the messages to a backend. For example if I send an acknowledged message, I would like to log when it was sent and when I receive the response for this specific message, I want to log when I received the acknowledgement. In the log timestamps are included so it is important to link exact message sent with acknowledgement specifically for this message.

@roshanrajaratnam roshanrajaratnam added the question Further information is requested label Jun 1, 2023
@roshanrajaratnam
Copy link
Member

Feel free to close the issue, if you managed to solve this.

@nikolayP4
Copy link
Author

I took a look into that class, but it is still not clear to me how can I (as a user of the library) compare acknowledgement that I have received to a message that I have sent.
Currently I have the following problem. I store the messages that I have sent and when I receive acknowledgement, I compare the sources/destinations and the type of the message. It is working for some time, until one of the messages is lost. E.g.
I send Message1 (GenericOnOffSet) to the node and store it. Message1 is lost and I don't receive acknowledgement for it. I send Message2 (GenericOnOffSet) the same type of message to the same node and I receive acknowledgement for it. The app then checks all messages that are sent and it stumbles upon stored Message1, the source and the type of message is accepted and the system thinks that the acknowledgement received is for Message1, however it is for Message2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants