SOLID design for wifi module

This commit is contained in:
2025-05-26 14:44:08 -04:00
parent 6a3e13fba1
commit 5d7c67eeed
6 changed files with 39 additions and 27 deletions

View File

@@ -1,21 +1,20 @@
#include <cstdio>
#include <cinttypes>
#include <memory>
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_chip_info.h"
#include "esp_flash.h"
#include "nvs_flash.h"
#include "WifiManager.h"
#include "IWifiManager.h"
extern "C" [[noreturn]] void app_main(void) {
nvs_flash_init();
const auto manager = std::make_unique<WifiManager>();
manager->init();
manager->connect();
printf("Hello world!\n");