Skip to content

Commit

Permalink
WiFiServer.h - fix ambiguous begin() parameter sets
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Oct 15, 2023
1 parent 725326b commit 1582c3c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/WiFiServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ class WiFiServer {

public:
WiFiServer(uint16_t port = 80);
void begin( uint8_t maxConnCount = 1, uint16_t serverTimeout = 60);
void begin(uint16_t port, uint8_t maxConnCount = 1, uint16_t serverTimeout = 60);
void beginSSL(bool ca = false, uint8_t maxConnCount = 1, uint16_t serverTimeout = 60);
void beginSSL(uint16_t port, bool ca = false, uint8_t maxConnCount = 1, uint16_t serverTimeout = 60);
void begin() { begin(1, 60); }
void begin(uint8_t maxConnCount, uint16_t serverTimeout);
void begin(uint16_t port) { begin(port, 1, 60); }
void begin(uint16_t port, uint8_t maxConnCount, uint16_t serverTimeout);
void beginSSL() { beginSSL(false, 1, 60); }
void beginSSL(bool ca, uint8_t maxConnCount, uint16_t serverTimeout);
void beginSSL(uint16_t port) { beginSSL(port, false, 1, 60); }
void beginSSL(uint16_t port, bool ca, uint8_t maxConnCount, uint16_t serverTimeout);
void end();
uint8_t status();
WiFiClient available(bool accept = false);
Expand Down

0 comments on commit 1582c3c

Please sign in to comment.