Skip to content

Commit ea4ae60

Browse files
fixing implementation of client and server
1 parent 6e6c837 commit ea4ae60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libraries/WiFi/src/WiFiClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class WiFiClient: public lwipClient {
1616
int connect(IPAddress ip, uint16_t port) {
1717
auto res = lwipClient::connect(ip, port);
1818

19-
this->bindCNetIf(WiFi);
19+
this->bindCNetIf(WiFiStation);
2020

2121
return res;
2222
}

libraries/WiFi/src/WiFiServer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
class WiFiServer: public lwipServer {
77
public:
8+
WiFiServer(uint16_t port) : lwipServer(port) {}
89
void begin() {
910
lwipServer::begin();
10-
this->bindCNetIf(WiFi);
11+
this->bindCNetIf(WiFiStation);
1112
}
1213

1314
WiFiClient available() {

0 commit comments

Comments
 (0)