mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
- Fix preferences lib - Fix ADHOC - Optimize API - Implement full preferences lib - Implement API with preferences lib
23 lines
568 B
C++
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
|