get output from M409 into macro variable
-
As the title says: how can I access some part of the object model within a macro to handle some set of values (example: all global variables with names and values) programmatically?
My intention is to save all defined global variables after config.g execution and later be able to restore those variables after a 2nd M999 to allow some persistent value use. Currently I do it with a large macro where I am forced to use individual "global xxx ..." and "set global.xxx ..." commands with lots of chances to include missmatches and/or wrong assignments.
I also did not find a possibility to write and re-read json-formatted data to/from sd-card. any chance to get this?