configuration

This commit is contained in:
2020-11-27 15:25:19 +01:00
parent cb5dd5f79a
commit 6d7119c0e2
5 changed files with 30 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#include <config.h>
#include <stdint.h>
#include <config.h>
#include <eeprom.h>
t_configBlock defaultConfigBlock = {
@ -12,9 +14,19 @@ t_configBlock defaultConfigBlock = {
.statusTopic = "IoT/MBGW3/Status",
.mbusDataTopic = "IoT/MBGW3/Measurement",
.syslogServerName = "syslogserver",
.filler = { 0, 0, 0 }
};
t_configBlock mainConfigBlock;
t_configBlock* getConfig() {
return &defaultConfigBlock;
}
void configInit() {
eepromReadConfigBlock(0, &mainConfigBlock);
}