-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(net): Switch to typedefs for WiFiClient, WiFiServer, WiFiUdp and…
… WiFiClientSecure (#9909) * feat(net): Deprecate old WiFi APIs Deprecates WiFiClient, WiFiServer, WiFiUdp and WiFiClientSecure * fix(net): add defines to WiFi.h Defines are added to not cause deprecation warnings. Will be removed in the future * fix(net): Use typedefs instead to help with forward declarations Defines do not allow forward declarations
- Loading branch information
Showing
6 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#pragma once | ||
#include "NetworkClientSecure.h" | ||
#define WiFiClientSecure NetworkClientSecure | ||
typedef NetworkClientSecure WiFiClientSecure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#include <WiFi.h> | ||
#include <WiFiClient.h> | ||
#include <WebServer.h> | ||
#include <uri/UriRegex.h> | ||
#include <SD.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#pragma once | ||
#include "NetworkClient.h" | ||
#define WiFiClient NetworkClient | ||
typedef NetworkClient WiFiClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#pragma once | ||
#include "NetworkServer.h" | ||
#define WiFiServer NetworkServer | ||
typedef NetworkServer WiFiServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#pragma once | ||
#include "NetworkUdp.h" | ||
#define WiFiUDP NetworkUDP | ||
typedef NetworkUDP WiFiUDP; |