B4R Question Persistent variable

daveinhull

Active Member
Licensed User
Longtime User
Hi,

How would I save a variable value across power off. If I simply don't initialise it will it just have the previous value? However, for the first time how would I detect that it has not been given a value.

I would like to set a value from my android over Bluetooth using B4a, but have this value stored permanently until I connect again and send another value.

Any help would be appreciated.
Dave
 
If I simply don't initialise it will it just have the previous value?
No.

 
Upvote 0
RTC-memory is also actual (at least for ESP-controllers)
 
Upvote 0
Back
Top