My Project
Loading...
Searching...
No Matches
MattzoWifiClient.h
Go to the documentation of this file.
1#pragma once
2
4
5#define WL_UNINITIALIZED -2
6#define WL_INITIALIZING -1
7
8// Class used to connect to WiFi.
10{
11 public:
12 // Setup the WiFi client.
13 static void Setup(MCWiFiConfiguration *config);
14 static void Loop();
15
16 // return either wifi or ethernet status
17 static int status();
18 // Returns the current WiFi connection status.
19 static int GetStatus();
20
21 // Blocking call waiting for a WiFi connection. It also handles OTA updates.
22 static void Assert();
23 static bool useWifiStatus;
24
25 private:
26 static void startOTA();
27
28 // Private static members.
29 static MCWiFiConfiguration *_config;
30 static bool _setupInitiated;
31 static bool _setupCompleted;
32 static bool _wasConnected;
33};
Definition MattzoWifiClient.h:10
static int status()
Definition MattzoWifiClient.cpp:140
static int GetStatus()
Definition MattzoWifiClient.cpp:153
static void Setup(MCWiFiConfiguration *config)
Definition MattzoWifiClient.cpp:37
static void Assert()
Definition MattzoWifiClient.cpp:165
static void Loop()
Definition MattzoWifiClient.cpp:23
static bool useWifiStatus
Definition MattzoWifiClient.h:23
Definition MCWiFiConfiguration.h:3