move wifi stuff to separate module, implement WifiManager for AP configuration

This commit is contained in:
2019-11-09 22:39:46 +01:00
parent 392a2523c0
commit 4b571786ef
4 changed files with 65 additions and 41 deletions

View File

@@ -24,7 +24,8 @@ void setup() {
settings.name.remove(devlen+1, 6);
PRINTLN_SERIAL("device name generated");
wifi_setup();
#ifdef ENABLE_MQTT
mqtt_setup();
@@ -40,6 +41,7 @@ void setup() {
}
void loop() {
wifi_loop();
#ifdef ENABLE_MQTT
mqtt_loop();
#endif