configuration
This commit is contained in:
@ -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);
|
||||
}
|
Reference in New Issue
Block a user