Custom configuration for the simulation can be added

This commit is contained in:
Ollo 2021-04-01 18:22:22 +02:00
parent 682201626c
commit 97bf9357f7
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
wlancfg.lua
config.lua
simulation.config.lua
*.swp
unit/testTimesMarchOctoberWithAllSeconds.lua

View File

@ -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