|
RSeries astromech firmware
|
|
Go to the documentation of this file.
47 WifiAccess(
const String& wifiAP,
const String& wifiPassword,
bool accessPoint =
true,
bool enabled =
true, uint32_t interval = 30000) :
68 bool connected =
false;
71 connected = (
fWifiSoftAP) ?
true : WiFi.isConnected();
80 return (
fWifiSoftAP) ? WiFi.softAPIP() : WiFi.localIP();
87 return WiFi.macAddress();
121 IPAddress myIP = WiFi.softAPIP();
132 else if (!WiFi.isConnected())
134 uint32_t now = millis();
207 client->wifiConnected(*
this);
219 client->wifiDisconnected(*
this);
void notifyDisconnected()
Definition: WifiAccess.h:213
void setNetworkCredentials(const String &wifiAP, const String &wifiPassword, bool accessPoint, bool enabled)
Definition: WifiAccess.h:58
bool fWifiAttemptReconnect
Definition: WifiAccess.h:196
WifiAccess(const String &wifiAP, const String &wifiPassword, bool accessPoint=true, bool enabled=true, uint32_t interval=30000)
Constructor.
Definition: WifiAccess.h:47
Definition: WifiAccess.h:25
String fWifiPassword
Definition: WifiAccess.h:190
Base class for all animated devices. AnimatedEvent::animate() is called for each device once through ...
Definition: AnimatedEvent.h:18
Definition: WifiAccess.h:166
void notifyConnected()
Definition: WifiAccess.h:203
bool fWifiWasConnected
Definition: WifiAccess.h:198
String fWifiAP
Definition: WifiAccess.h:189
bool fWifiSoftAP
Definition: WifiAccess.h:193
void(* fNotifyConnectedCallback)(WifiAccess &wifi)
Definition: WifiAccess.h:200
String getWifiAP()
Definition: WifiAccess.h:90
String getMacAddress()
Definition: WifiAccess.h:85
#define DEBUG_PRINTLN(s)
Definition: ReelTwo.h:188
bool isSoftAP()
Definition: WifiAccess.h:100
void setReconnect(bool reconnect)
Definition: WifiAccess.h:105
bool fWifiStarted
Definition: WifiAccess.h:194
void notifyWifiConnected(void(*notify)(WifiAccess &wifi))
Definition: WifiAccess.h:178
bool fWifiEnabled
Definition: WifiAccess.h:195
IPAddress getIPAddress()
Definition: WifiAccess.h:76
void setEnabled(bool enabled=true)
Definition: WifiAccess.h:161
bool enabled()
Definition: WifiAccess.h:156
bool fWifiActive
Definition: WifiAccess.h:197
uint32_t fWifiPrevMillis
Definition: WifiAccess.h:192
void notifyWifiDisconnected(void(*notify)(WifiAccess &wifi))
Definition: WifiAccess.h:183
void addNotify(WifiAccess::Notify *client)
Definition: WifiAccess.h:173
virtual void animate()
Subclasses must implement this function to run through a single frame of animation/activity.
Definition: WifiAccess.h:110
WifiAccess(uint32_t interval=30000)
Constructor.
Definition: WifiAccess.h:32
uint32_t fWifiInterval
Definition: WifiAccess.h:191
bool isConnected()
Definition: WifiAccess.h:66
virtual void wifiConnected(WifiAccess &access)=0
String getWifiPassword()
Definition: WifiAccess.h:95
std::vector< Notify * > fWifiNotify
Definition: WifiAccess.h:199
void(* fNotifyDisconnectedCallback)(WifiAccess &wifi)
Definition: WifiAccess.h:201
virtual void wifiDisconnected(WifiAccess &access)=0