From 97bf9357f722e5c309347b2ac61a83acec60e111 Mon Sep 17 00:00:00 2001 From: Ollo Date: Thu, 1 Apr 2021 18:22:22 +0200 Subject: [PATCH] Custom configuration for the simulation can be added --- .gitignore | 1 + simulation/config.lua | 6 ++++++ 2 files changed, 7 insertions(+) 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