1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Allow WiFiServer to bind to a specific address (#997)

In addition to the existing constructors (WiFiServer::WiFiServer(port) and WiFiWebServer::WiFiWebServer(port)), new constructors are added:
WiFiServer::WiFiServer(IPAddress, port) and WiFiWebServer::WiFiWebServer(IPAddress, port).
This commit is contained in:
Ivan Grokhotkov
2015-11-15 20:35:52 +03:00
parent 34045d4908
commit 5b28ae23c2
4 changed files with 67 additions and 52 deletions

View File

@ -59,6 +59,7 @@ typedef struct {
class ESP8266WebServer
{
public:
ESP8266WebServer(IPAddress addr, int port = 80);
ESP8266WebServer(int port = 80);
~ESP8266WebServer();