This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to retain variables data after disconnecting from the device?

Hi,

I am scanning from my nRF52840 and connects to one peripheral and i have written code to get it's Device information(DIS) and i stored all these information in some variables and now i need to connect another peripheral and pass Model number(previously got from DIS) using Nordic uart service.

After disconnecting from one peripheral and trying to connect to other device  my previous data is being lost.

How can i do it,is there any other example for my problem?

Parents Reply Children
No Data
Related