You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
437 B
21 lines
437 B
#ifndef _WIFI_H
|
|
#define _WIFI_H
|
|
|
|
#include <WiFi.h>
|
|
#include <WiFiMulti.h>
|
|
|
|
class Wifi {
|
|
public:
|
|
Wifi();
|
|
void connect();
|
|
void disconnect();
|
|
private:
|
|
void reconnectTask(void*);
|
|
static void cTaskWrapper(void*);
|
|
WiFiMulti wifiMulti;
|
|
TaskHandle_t wifiTaskHandle;
|
|
size_t getStoredPassword(const char* ssid, char* value);
|
|
size_t setStoredPassword(const char* ssid, char* value);
|
|
};
|
|
|
|
#endif /* _WIFI_H */
|
|
|