Add support for AP and provisioned wifi networks

This commit is contained in:
Lorow
2024-10-27 16:01:13 +01:00
parent 19a2c25ce3
commit 2e76dd0276
7 changed files with 160 additions and 52 deletions

View File

@@ -33,7 +33,7 @@ WebSocketLogger webSocketLogger;
// TODO add this option
// ProjectConfig deviceConfig("openiris", MDNS_HOSTNAME);
ProjectConfig deviceConfig("openiris", "openiristracker");
WiFiManager wifiManager;
WiFiManager wifiManager(deviceConfig);
MDNSManager mdnsManager(deviceConfig);
CameraManager cameraHandler(deviceConfig);
StreamServer streamServer(80);
@@ -76,20 +76,21 @@ extern "C" void app_main(void)
// porting plan:
// port the wifi manager first. - worky!!!
// get it connect to the network and setup an AP with hardcoded creds first -- connects. AP will be next
// port the logo - done
// port preferences lib - DONE; prolly temporary
// then port the config - done, needs todos done
// State Management - done
// then port the led manager as this will be fairly easy - done
// then port the mdns stuff - done
// then port the camera manager - in progress
// then port the camera manager - done
// then port the streaming stuff (web and uvc) - done
// then add ADHOC and support for more networks in wifi manager
// then add ADHOC and support for more networks in wifi manager - done
// then port the async web server
// then port the Elegant OTA stuff
// then port the serial manager
// then port the serial manager - for wifi and mdns provisioning setup?
// finish todos, overhaul stuff a bit
// maybe swich websocket logging to udp logging
Logo::printASCII();
initNVSStorage();