Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(net): Switch to typedefs for WiFiClient, WiFiServer, WiFiUdp and WiFiClientSecure #9909

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ config ARDUINO_SELECTIVE_ESPmDNS
config ARDUINO_SELECTIVE_HTTPClient
bool "Enable HTTPClient"
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
select ARDUINO_SELECTIVE_WiFiClientSecure
select ARDUINO_SELECTIVE_NetworkClientSecure
default y

config ARDUINO_SELECTIVE_NetBIOS
Expand All @@ -375,7 +375,7 @@ config ARDUINO_SELECTIVE_WiFi
default y

config ARDUINO_SELECTIVE_NetworkClientSecure
bool "Enable WiFiClientSecure"
bool "Enable NetworkClientSecure"
depends on ARDUINO_SELECTIVE_COMPILATION && ARDUINO_SELECTIVE_Network
default y

Expand Down
2 changes: 1 addition & 1 deletion libraries/NetworkClientSecure/src/WiFiClientSecure.h
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;
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>
Expand Down
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiClient.h
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;
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiServer.h
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;
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiUdp.h
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;
Loading