open62541 icon indicating copy to clipboard operation
open62541 copied to clipboard

Feature Request: Parse Configuration from File

Open jpfr opened this issue 7 years ago • 0 comments

Changing the configuration currently requires rebuilding from source. This is not ideal for wide-spread deployment.

It would be great to have a configuration file format for clients and servers. Then we could have another config "factory" that takes a file as the input.

For example based on the TOML format for configuration files: https://github.com/toml-lang/toml

There exists an implementation in C99 (MIT) that does the heavy lifting for parsing. The config values can then be extracted as hostname = toml_raw_in(server, "host"); or similar. https://github.com/cktan/tomlc99

jpfr avatar Jul 13 '18 14:07 jpfr