diff --git a/.gitignore b/.gitignore index 40db714..18d5539 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ wlancfg.lua config.lua +simulation.config.lua *.swp unit/testTimesMarchOctoberWithAllSeconds.lua diff --git a/simulation/config.lua b/simulation/config.lua index 4b24281..239fe4c 100644 --- a/simulation/config.lua +++ b/simulation/config.lua @@ -13,3 +13,9 @@ sntpserverhostname="ptbtime1.ptb.de" timezoneoffset=1 mqttServer="192.168.1.1" mqttPrefix="test" + +if (file.open("simulation.config.lua")) then + dofile("simulation.config.lua") +else + print("Default configuration, used") +end