mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 02:18:29 +00:00
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
This commit is contained in:
parent
1f2ba1f87f
commit
ad1de0b37c
@ -355,7 +355,7 @@ config ARDUINO_SELECTIVE_ESPmDNS
|
|||||||
config ARDUINO_SELECTIVE_HTTPClient
|
config ARDUINO_SELECTIVE_HTTPClient
|
||||||
bool "Enable HTTPClient"
|
bool "Enable HTTPClient"
|
||||||
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
|
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
|
||||||
select ARDUINO_SELECTIVE_WiFiClientSecure
|
select ARDUINO_SELECTIVE_NetworkClientSecure
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config ARDUINO_SELECTIVE_NetBIOS
|
config ARDUINO_SELECTIVE_NetBIOS
|
||||||
@ -375,7 +375,7 @@ config ARDUINO_SELECTIVE_WiFi
|
|||||||
default y
|
default y
|
||||||
|
|
||||||
config ARDUINO_SELECTIVE_NetworkClientSecure
|
config ARDUINO_SELECTIVE_NetworkClientSecure
|
||||||
bool "Enable WiFiClientSecure"
|
bool "Enable NetworkClientSecure"
|
||||||
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
|
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "NetworkClientSecure.h"
|
#include "NetworkClientSecure.h"
|
||||||
#define WiFiClientSecure NetworkClientSecure
|
typedef NetworkClientSecure WiFiClientSecure;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <WiFiClient.h>
|
|
||||||
#include <WebServer.h>
|
#include <WebServer.h>
|
||||||
#include <uri/UriRegex.h>
|
#include <uri/UriRegex.h>
|
||||||
#include <SD.h>
|
#include <SD.h>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "NetworkClient.h"
|
#include "NetworkClient.h"
|
||||||
#define WiFiClient NetworkClient
|
typedef NetworkClient WiFiClient;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "NetworkServer.h"
|
#include "NetworkServer.h"
|
||||||
#define WiFiServer NetworkServer
|
typedef NetworkServer WiFiServer;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "NetworkUdp.h"
|
#include "NetworkUdp.h"
|
||||||
#define WiFiUDP NetworkUDP
|
typedef NetworkUDP WiFiUDP;
|
||||||
|
Loading…
Reference in New Issue
Block a user