network specific configuration
This commit is contained in:
parent
a2a484fcc5
commit
4ca37156f3
@ -13,9 +13,9 @@ typedef struct __attribute__((__packed__)) s_configBlock {
|
||||
char deviceId[16];
|
||||
char sharedSecret[SHA256_BLOCK_SIZE];
|
||||
char sinkServer[48];
|
||||
union networkspecific {
|
||||
union {
|
||||
uint8_t macAddress[6];
|
||||
};
|
||||
} networkspecific;
|
||||
uint8_t filler[22];
|
||||
} t_configBlock;
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
t_configBlock defaultConfigBlock = {
|
||||
.configMagic = CONFIG_MAGIC,
|
||||
.deviceName = "MainsCnt",
|
||||
.macAddress = { 0x00, 0xA0, 0x57, 0x05, 0x3E, 0x0F },
|
||||
.networkspecific.macAddress = { 0x00, 0xA0, 0x57, 0x05, 0x3E, 0x0F },
|
||||
.ntpServer = "0.de.pool.ntp.org",
|
||||
.deviceId = "MainsCnt01",
|
||||
.sharedSecret = "sharedSecretGanzGeheim",
|
||||
|
Loading…
x
Reference in New Issue
Block a user