Skip to content

Question : how to share variables / configuration / data between codes/threads ? #59

@Liberasys

Description

@Liberasys

In my project, I store some configuration in a json file.
This json file is parsed at boot in order to get network configuration.
This json file is parsed and written in a method called from the JC webserver in order to display and reconfigure network connection for example.
I did that because I had not seen any simple way to share information between init codes and threads.
Did I miss something ?
Would it be interesting to have a dedicated thread code that read, store in RAM, store in file some data with external methods in order to access those data ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions