OMOTE/Platformio/HAL/Targets/Simulator/wifiHandlerSim/wifiHandlerSim.hpp
2023-10-22 20:35:49 +02:00

21 lines
No EOL
578 B
C++

#pragma once
#include "Notification.hpp"
#include "wifiHandlerInterface.h"
#include <atomic>
#include <memory>
#include <thread>
class wifiHandlerSim : public wifiHandlerInterface {
public:
wifiHandlerSim();
void begin() override;
void scan() override;
void connect(std::string ssid, std::string password) override;
wifiStatus GetStatus() override { return mCurrentStatus; };
private:
std::thread mFakeScanThread = std::thread([] {});
std::thread mFakeStatusThread = std::thread([] {});
wifiStatus mCurrentStatus = wifiStatus(true, "172.0.0.1", "FakeNet");
};