WebServer_tng icon indicating copy to clipboard operation
WebServer_tng copied to clipboard

esp32 wrong constructor, server port set to ipaddress first octet

Open tablatronix opened this issue 7 years ago • 0 comments

esp32 wifiserver only has this

  WiFiServer(uint16_t port=80, uint8_t max_clients=4):sockfd(-1),_accepted_sockfd(-1),_port(port),_max_clients(max_clients),_listening(false),_noDelay(false){}

so :


WebServer::WebServer(IPAddress addr, int port)
: _server(addr, port)

set ports to ipaddr first octet xxx. instead of port

tablatronix avatar Mar 04 '18 15:03 tablatronix