I want to define a variable whose value can survives a reset. Is it possible?
I don't think you need to disable sd to do that. just don't scan/advertise etc, and your program flow should go uninterrupted i think.