Replies: 4 comments 10 replies
-
I agree it would be nicer to have a single place where we read the ini file. How ever it is a lot of work to refactor and test this. If you want to do it, feel free. I don't think we should move from config.ini to NVS. I often swap devices but keep the SD-Card. That then no longer would be possible! Also there are people who edit the config file manually, that also would not be possible anymore! Backup and restore would also be more difficult. Overall, you would not gain much performance with this! The config.ini file gets only read at initialization! |
Beta Was this translation helpful? Give feedback.
-
I also agree to caco3, that I don't prefer to store informations on the device itself. Just moving the sd-card takes everything you need with it. |
Beta Was this translation helpful? Give feedback.
-
The ReadParameter(FILE* pfile, string &aktparamgraph) is called 9x in the flow processing.
The fopen is called 37x in first run :
|
Beta Was this translation helpful? Give feedback.
-
Am I using this incorrectly? I run once every 15 minutes. I don't care how fast the process is so long as it's faster than my read interval, even at 5 mins interval I wasn't over-running. |
Beta Was this translation helpful? Give feedback.
-
I mean actual config.ini is not optimal and called by many functions across every parts of the software.
Access to sdcard is very slow and degrades overall performance.
I see several option to do it better :
I've seen many good ini parser in github:
https://github.com/pulzed/mINI
https://github.com/benhoyt/inih
https://github.com/brofield/simpleini
But I prefer the NVS way as it already exists an NVS partition with 16k free space
What do you think of that ?
Beta Was this translation helpful? Give feedback.
All reactions