33 lines
535 B
C++
33 lines
535 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);
|
|
|
|
public:
|
|
Wifi();
|
|
|
|
protected:
|
|
void wifi_event(arduino_event_id_t event, arduino_event_info_t info);
|
|
|
|
public:
|
|
uint32_t connect();
|
|
int scan();
|
|
};
|
|
|
|
#endif |