From 1582c3cb101ac7c9129f174eb84be8dd82e67b19 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Sun, 15 Oct 2023 09:24:29 +0200 Subject: [PATCH] WiFiServer.h - fix ambiguous begin() parameter sets --- src/WiFiServer.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/WiFiServer.h b/src/WiFiServer.h index 85af43f..8d5f421 100644 --- a/src/WiFiServer.h +++ b/src/WiFiServer.h @@ -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);