Page 1 of 1

NVS handle

Posted: Thu Feb 10, 2022 11:39 pm
by ndjurov
I have an application that initializes NVS (one nvs partition with default nvs lablel) and later calls set/get, mostly for integers and short strings - non encrypted.
My question is whether it makes any difference (except for execution time), to get nvs handle only once - during init procedure and re-use it later in all set/get calls, or to call nvs_open() and nvs_close() every time set/get is called?
Thank you very much.