2021-01-03 21:43:35 +00:00
|
|
|
#ifndef TASK_WIFI_H_
|
|
|
|
#define TASK_WIFI_H_
|
|
|
|
|
|
|
|
#include <TaskManager.h>
|
|
|
|
#include <WiFiMulti.h>
|
|
|
|
|
2021-03-12 22:21:45 +00:00
|
|
|
class WifiTask : public Task {
|
2021-01-03 21:43:35 +00:00
|
|
|
public:
|
2021-03-12 22:21:45 +00:00
|
|
|
WifiTask();
|
|
|
|
virtual ~WifiTask();
|
2021-01-03 21:43:35 +00:00
|
|
|
|
2021-03-12 22:21:45 +00:00
|
|
|
virtual bool setup(std::shared_ptr<Configuration> config, std::shared_ptr<BoardConfig> boardConfig) override;
|
|
|
|
virtual bool loop(std::shared_ptr<Configuration> config) override;
|
2021-01-03 21:43:35 +00:00
|
|
|
|
|
|
|
private:
|
2021-03-12 22:21:45 +00:00
|
|
|
std::shared_ptr<WiFiMulti> _wiFiMulti;
|
|
|
|
uint8_t _oldWifiStatus;
|
2021-01-03 21:43:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|