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.
20 lines
337 B
20 lines
337 B
#ifndef _WIFI_H
|
|
#define _WIFI_H
|
|
|
|
#include <WiFi.h>
|
|
#include <WiFiMulti.h>
|
|
|
|
class Wifi {
|
|
public:
|
|
Wifi();
|
|
void connect();
|
|
void disconnect();
|
|
bool connected();
|
|
private:
|
|
void reconnectTask(void*);
|
|
static void cTaskWrapper(void*);
|
|
WiFiMulti wifiMulti;
|
|
TaskHandle_t wifiTaskHandle;
|
|
};
|
|
|
|
#endif /* _WIFI_H */
|
|
|