Remember last button state when reopening app

I’m using a set of roll up/roll down action buttons to control a CAN AN Input on my ECU. This controls my traction control slip % table in the same way a 10 position rotary switch would.

Ofcourse if I turn the car off and back on, a physical 10 position switch that was set to position 4 will still be in that position after the car is shut off and turned on again later. Where as my CAN Input resets back to 0 everytime the realdash app is closed and reopened.

Interestingly though, real dash remembers what page you had open last so that tells me there is some sort of memory function in the app. which brings me to my question: is there a way to get it to also remember any button, slider states?

Only “proper” way to do this is to use different CAN frames for ‘current status’ and ‘change status’. So your CAN device is constantly telling the current status of the values, and RealDash uses different CAN frame for changing the values, which eventually will be reflected back in status frames.