2024-05-13 11:43:31 -07:00

29 lines
416 B
C++

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