Re: faq: context vs global variables

2023-05-04 Thread Fotis Panagiotopoulos
Hello Tomek, you may also have a look here: https://github.com/fjpanag/code_for_nuttx/tree/main/settings On Sun, Apr 30, 2023 at 3:12 PM Alan C. Assis wrote: > On 4/30/23, Tomek CEDRO wrote: > > On Sat, Apr 29, 2023 at 10:16 PM Alan C. Assis wrote: > >> Take a look at apps/system/cfgdata it co

Re: faq: context vs global variables

2023-04-30 Thread Alan C. Assis
On 4/30/23, Tomek CEDRO wrote: > On Sat, Apr 29, 2023 at 10:16 PM Alan C. Assis wrote: >> Take a look at apps/system/cfgdata it could or could not be what you >> are looking for. >> Also take a look at ReleaseNotes for more details. > > Wow thanks for the cfgdata hint Alan! :-) > > -- > CeDeROM, S

Re: faq: context vs global variables

2023-04-29 Thread Tomek CEDRO
On Sat, Apr 29, 2023 at 10:16 PM Alan C. Assis wrote: > Take a look at apps/system/cfgdata it could or could not be what you > are looking for. > Also take a look at ReleaseNotes for more details. Wow thanks for the cfgdata hint Alan! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: faq: context vs global variables

2023-04-29 Thread Alan C. Assis
Hi Tomek, Take a look at apps/system/cfgdata it could or could not be what you are looking for. Also take a look at ReleaseNotes for more details. BR, Alan On 4/29/23, Tomek CEDRO wrote: > Hello world :-) > > What is the recommended way of storing the application > drivers/state/settings in N

Re: FAQ :-)

2023-04-28 Thread Gregory Nutt
> 1. Daemon / Service: > > 1.1. I would like to have application running as daemon in the > background all the time. Is this possible? NuttX supports the daemon() API. https://man7.org/linux/man-pages/man3/daemon.3.html Lots of examples to look at: $ grep -ri daemon apps | wc -l 2384

Re: FAQ :-)

2023-04-28 Thread Nathan Hartman
On Thu, Apr 27, 2023 at 6:03 PM Tomek CEDRO wrote: > Hello world :-) > > I have some in-development question that could probably go to DOC/FAQ > as I found some questions/answers there already :-) Any hints > appreciated. Also the logic / approach errors and valid solution > propositions welcome