This commit is contained in:
2021-02-08 14:34:29 +01:00
parent d7afc9af62
commit ad17551832
6 changed files with 250 additions and 2 deletions

View File

@ -5,6 +5,8 @@
#include <spi.h>
#include <assert.h>
#include <sha256.h>
#define CONFIG_MAGIC 0xdead0006
typedef struct __attribute__((__packed__)) s_configBlock {
@ -13,7 +15,7 @@ typedef struct __attribute__((__packed__)) s_configBlock {
uint8_t macAddress[6];
char ntpServer[48];
char deviceId[16];
char sharedSecret[32];
char sharedSecret[SHA256_BLOCK_SIZE];
char location[48];
char sinkServer[48];
uint8_t filler[6];