When to use nvs_flash_init and create task
Posted: Thu Jan 05, 2017 12:23 am
Why do some examples call nvs_flash_init while others don't (example 01 vs 20)? I assume there is a dependency on the flash for some applications, but I can't trace this dependency for something like example 01. What exactly is the nvs used for?
Also, why do some examples spawn tasks to run most of the program while others run most of the program in the app_main? I assume app_main itself is simply a task, so I don't know if I'm missing something.
Also (and this might be a stretch to ask ) but what generally are the kinds of background processes bring run aside from app_main?
Thanks in advance!
Also, why do some examples spawn tasks to run most of the program while others run most of the program in the app_main? I assume app_main itself is simply a task, so I don't know if I'm missing something.
Also (and this might be a stretch to ask ) but what generally are the kinds of background processes bring run aside from app_main?
Thanks in advance!