NVS handle

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

NVS handle

Postby ndjurov » Thu Feb 10, 2022 11:39 pm

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.

Who is online

Users browsing this forum: No registered users and 212 guests