11
Comments
  • 6
    Store the variable value in a .ini file in the eMMC, flash storage or any storage. Load it globally in main and modify on the fly.

    Global variable that will survive poweroff.

    *Universe brain*
  • 0
    a simple key-value-store like redis should do the trick.

    alternatively store all vars as GET-params. distributed storage or something. I don't know.
  • 0
    Don’t pass any variables. Only pass functions that generate variables to other functions.
Add Comment