As far as I know Chirpstack does not have a way of editing the TOML configuration files other than manually editing the value field with a text editor such as vim and etc. I was in need for a C library to parse and edit TOML files to configure Chirpstack files. Many C parsers I found only did the parsing part. But I needed to edit values in TOML files from my main application written in C.
So I developed a library to do such task. I call it TOMLinC. It’s not perfect and there might be bugs but it covers the basics for what I need. I will share it here if anyone needs something similar:
Advice and improvements are always welcome.