mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 08:56:34 +02:00
[temporary commit]
This commit is contained in:
@ -1,19 +1,34 @@
|
||||
#ifndef _AG_WIFI_CONNECTOR_H_
|
||||
#define _AG_WIFI_CONNECTOR_H_
|
||||
|
||||
#include "AirGradient.h"
|
||||
#include "AgOledDisplay.h"
|
||||
#include "AirGradient.h"
|
||||
#include "AgStateMachine.h"
|
||||
#include "Main/PrintLog.h"
|
||||
|
||||
class AgWiFiConnector
|
||||
{
|
||||
#include <Arduino.h>
|
||||
|
||||
class AgWiFiConnector : public PrintLog {
|
||||
private:
|
||||
AirGradient &ag;
|
||||
AgOledDisplay &disp;
|
||||
AgStateMachine &sm;
|
||||
String ssid;
|
||||
void *wifi = NULL;
|
||||
|
||||
bool wifiClientConnected(void);
|
||||
public:
|
||||
AgWiFiConnector(AirGradient& ag, AgOledDisplay &disp, String ssid);
|
||||
AgWiFiConnector(AirGradient &ag, AgOledDisplay &disp, String ssid,
|
||||
Stream &log, AgStateMachine &sm);
|
||||
~AgWiFiConnector();
|
||||
|
||||
void setHotspotSSID(String ssid);
|
||||
bool connect(uint32_t timeout);
|
||||
void _wifiApCallback(void);
|
||||
void _wifiSaveConfig(void);
|
||||
void _wifiSaveParamCallback(void);
|
||||
bool _wifiConfigPortalActive(void);
|
||||
void _wifiProcess();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /** _AG_WIFI_CONNECTOR_H_ */
|
||||
|
Reference in New Issue
Block a user