-
Hello and sorry for bothering you again, I have a basic question about something I came across and I could not fix. Let's say I have a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @paliasgh Never mind, we're here to help.
Yep.
An easy solution consists in latching the value in a class data member for example. messageRsPos = rsPos.read(false);
if (messageRsPos != nullptr) {
messageRsPosLatch = *messageRsPos;
} In your code, you'll be using This should address your use case. |
Beta Was this translation helpful? Give feedback.
Hi @paliasgh
Never mind, we're here to help.
Yep.
An easy solution consists in latching the value in a class data member for example.
Something like the following:
In your code, you'll be using
messageRsPosLatch
, which gets updated only when a new message is retrieved via polling. Just make sure to initializemessageRsPosLatch
with a value that is sensible for your application.This…