How to keep in memory previous value in payload parser

How to keep in memory previous value in payload parser

@Émile Laplante

Hi!

I would like to keep in memory a previous value received for the calculation of a new value in the payload parser. For example, my device sends a raw acceleration value, but to compute the real acceleration value, I need the sensitivity value of the device which is subject to change. I don’t want to send the sensitivity value every time if it’s the same as the one in the previous payload. Is it possible to store the last sent sensitivity value and re-use it when a new payload is coming in the payload parser?

Thank you!­