OpenIris/ESP/lib/src/network/mDNS/MDNSManager.hpp
ZanzyTHEbar 687be8afb7 large update
- Fully reworked the API code, wifi handler, and serial manager
- Added proper APIServer
2022-08-20 14:02:10 +01:00

18 lines
602 B
C++

#pragma once
#include <ESPmDNS.h>
#include "data/StateManager/StateManager.hpp"
#include "data/utilities/Observer.hpp"
#include "data/utilities/helpers.hpp"
#include "data/config/project_config.hpp"
class MDNSHandler : public IObserver
{
private:
StateManager<ProgramStates::DeviceStates::MDNSState_e> *stateManager;
ProjectConfig *configManager;
public:
MDNSHandler(StateManager<ProgramStates::DeviceStates::MDNSState_e> *stateManager, ProjectConfig *configManager) : stateManager(stateManager), configManager(configManager) {}
void startMDNS();
void update(ObserverEvent::Event event);
};