33 lines
550 B
C++

/// © MiroZ 2024
#ifndef __WIFI_H__
#define __WIFI_H__
#include <WiFi.h>
#include <esp_timer.h>
#include "Settings.h"
#include "TaskFactory.h"
class Wifi
{
protected:
uint8_t m_ignored[SETTINGS_NUM_WIFI_ENTRIES];
// esp_timer_handle_t m_timer;
// static void timerCallback(void* arg);
// TaskHandle_t m_task = nullptr;
// void wifiTask();
uint32_t connectTo(int index);
int scan();
public:
Wifi();
protected:
void wifi_event(arduino_event_id_t event, arduino_event_info_t info);
public:
uint32_t start();
};
#endif /* __WIFI_H__ */