Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 39043b8

Browse filesBrowse files
JAndrassySuGliderme-no-dev
authored
WiFiServer - don't inherit from Print and Server (espressif#8930)
because print-to-all-clients is not implemented Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
1 parent e73af48 commit 39043b8
Copy full SHA for 39043b8

File tree

Expand file treeCollapse file tree

2 files changed

+1
-13
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-13
lines changed

‎libraries/WiFi/src/WiFiServer.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiServer.cpp
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ int WiFiServer::setTimeout(uint32_t seconds){
3232
return setsockopt(sockfd, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv, sizeof(struct timeval));
3333
}
3434

35-
size_t WiFiServer::write(const uint8_t *data, size_t len){
36-
return 0;
37-
}
38-
39-
void WiFiServer::stopAll(){}
40-
4135
WiFiClient WiFiServer::available(){
4236
return accept();
4337
}

‎libraries/WiFi/src/WiFiServer.h

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiServer.h
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "WiFiClient.h"
2525
#include "IPAddress.h"
2626

27-
class WiFiServer : public Server {
27+
class WiFiServer {
2828
private:
2929
int sockfd;
3030
int _accepted_sockfd = -1;
@@ -51,18 +51,12 @@ class WiFiServer : public Server {
5151
void setNoDelay(bool nodelay);
5252
bool getNoDelay();
5353
bool hasClient();
54-
size_t write(const uint8_t *data, size_t len);
55-
size_t write(uint8_t data){
56-
return write(&data, 1);
57-
}
58-
using Print::write;
5954

6055
void end();
6156
void close();
6257
void stop();
6358
operator bool(){return _listening;}
6459
int setTimeout(uint32_t seconds);
65-
void stopAll();
6660
};
6761

6862
#endif /* _WIFISERVER_H_ */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.