Step
This commit is contained in:
1 parent
644e2363f7
commit
75bbcce5b4
10 files changed
+226
-98
No files matched your search
@@ -0,0 +1,5 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
void ReadConfig(void);
|
||||
void SaveConfig(void);
|
||||
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct MyConfig {
|
||||
uint32_t magic;
|
||||
char mqtt_server[40];
|
||||
char mqtt_user[32];
|
||||
char mqtt_passw[32];
|
||||
char topic[32];
|
||||
char ssid[32];
|
||||
char password[32];
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
void OtaSetup(void);
|
||||
void OtaLoop(void);
|
||||
@@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "main.h"
|
||||
extern MyConfig myConfig;
|
||||
|
||||
void WifiSetup(void);
|
||||
Reference in new issue
Block a user