Skip to content

Commit 8f13096

Browse files
committed
fix(net): add defines to WiFi.h
Defines are added to not cause deprecation warnings. Will be removed in the future
1 parent 22ff1b8 commit 8f13096

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/WiFi/src/WiFi.h

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
#include "NetworkClient.h"
3939
#include "NetworkServer.h"
4040
#include "NetworkUdp.h"
41+
//defines are added here not to cause warnings
42+
//to be removed in the future
43+
#define WiFiClient NetworkClient
44+
#define WiFiServer NetworkServer
45+
#define WiFiUDP NetworkUDP
4146

4247
class WiFiClass : public WiFiGenericClass, public WiFiSTAClass, public WiFiScanClass, public WiFiAPClass {
4348
private:

0 commit comments

Comments
 (0)