Skip to content

Commit

Permalink
fix(net): add defines to WiFi.h
Browse files Browse the repository at this point in the history
Defines are added to not cause deprecation warnings. Will be removed in the future
  • Loading branch information
me-no-dev committed Jun 20, 2024
1 parent 22ff1b8 commit 8f13096
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/WiFi/src/WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
#include "NetworkClient.h"
#include "NetworkServer.h"
#include "NetworkUdp.h"
//defines are added here not to cause warnings
//to be removed in the future
#define WiFiClient NetworkClient
#define WiFiServer NetworkServer
#define WiFiUDP NetworkUDP

class WiFiClass : public WiFiGenericClass, public WiFiSTAClass, public WiFiScanClass, public WiFiAPClass {
private:
Expand Down

0 comments on commit 8f13096

Please sign in to comment.