OpenIris/ESP/lib/src/network/WifiHandler/WifiHandler.hpp
ZanzyTHEbar 8ce0ea0860 update
- Fix preferences lib
- Fix ADHOC
- Optimize API
- Implement full preferences lib
- Implement API with preferences lib
2022-08-15 05:54:06 +01:00

23 lines
568 B
C++

#pragma once
#ifndef WIFIHANDLER_HPP
#define WIFIHANDLER_HPP
#include <memory>
#include <WiFi.h>
#include "data/StateManager/StateManager.hpp"
#include "data/config/project_config.hpp"
class WiFiHandler
{
public:
WiFiHandler(ProjectConfig *configManager, StateManager<WiFiState_e> *stateManager);
virtual ~WiFiHandler();
void setupWifi();
ProjectConfig *configManager;
StateManager<WiFiState_e> *stateManager;
private:
void setUpADHOC();
void adhoc(const char *ssid, const char *password, uint8_t channel);
void iniSTA();
};
#endif // WIFIHANDLER_HPP