Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ad1de0b

Browse filesBrowse files
authored
feat(net): Switch to typedefs for WiFiClient, WiFiServer, WiFiUdp and WiFiClientSecure (espressif#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
1 parent 1f2ba1f commit ad1de0b
Copy full SHA for ad1de0b

File tree

6 files changed

+6
-7
lines changed
Filter options

6 files changed

+6
-7
lines changed

‎Kconfig.projbuild

Copy file name to clipboardExpand all lines: Kconfig.projbuild
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ config ARDUINO_SELECTIVE_ESPmDNS
355355
config ARDUINO_SELECTIVE_HTTPClient
356356
bool "Enable HTTPClient"
357357
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
358-
select ARDUINO_SELECTIVE_WiFiClientSecure
358+
select ARDUINO_SELECTIVE_NetworkClientSecure
359359
default y
360360

361361
config ARDUINO_SELECTIVE_NetBIOS
@@ -375,7 +375,7 @@ config ARDUINO_SELECTIVE_WiFi
375375
default y
376376

377377
config ARDUINO_SELECTIVE_NetworkClientSecure
378-
bool "Enable WiFiClientSecure"
378+
bool "Enable NetworkClientSecure"
379379
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
380380
default y
381381

+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#pragma once
22
#include "NetworkClientSecure.h"
3-
#define WiFiClientSecure NetworkClientSecure
3+
typedef NetworkClientSecure WiFiClientSecure;

‎libraries/WebServer/examples/UploadHugeFile/UploadHugeFile.ino

Copy file name to clipboardExpand all lines: libraries/WebServer/examples/UploadHugeFile/UploadHugeFile.ino
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <WiFi.h>
2-
#include <WiFiClient.h>
32
#include <WebServer.h>
43
#include <uri/UriRegex.h>
54
#include <SD.h>

‎libraries/WiFi/src/WiFiClient.h

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#pragma once
22
#include "NetworkClient.h"
3-
#define WiFiClient NetworkClient
3+
typedef NetworkClient WiFiClient;

‎libraries/WiFi/src/WiFiServer.h

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#pragma once
22
#include "NetworkServer.h"
3-
#define WiFiServer NetworkServer
3+
typedef NetworkServer WiFiServer;

‎libraries/WiFi/src/WiFiUdp.h

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#pragma once
22
#include "NetworkUdp.h"
3-
#define WiFiUDP NetworkUDP
3+
typedef NetworkUDP WiFiUDP;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.