arduino-esp32/libraries
Tim 29455a0447
Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509)
* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result"

"The class Webserver is declared with two explicit constructors, one with signature:
WebServer::WebServer(IPAddress addr, int port)
Using this results in a server listening on the port number obtained by converting the value of the IPAddress addr argument (in host byte order) to a uint32_t and then to a uint16_t, which is manifestly not the result that would be expected.
...
As for a fix, we can assume from these results that this constructor is not being used and therefore could simply be deleted."

* Issue 5507
Reverse changes in commit bee1e7088cef913391155f096b42cd4bb89c5c6f after discussion.
Alternative fix to be done.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result"

This change adds support for multi-homed servers to libraries/WiFi.  It was assumed to be there already by libraries/WebServer, but was not.
This led to unexpected results when the IP address-specific constructor of class WebServer was used (see issue 5507).

This change was tested using three concurrent instances of WebServer, one bound to the WiFi station address, one bound to the WiFi soft AP address,
and one bound to INADDR_ANY.  See libraries/WebServer/examples/MultiHomedServers for the test method.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result" (cont.)
This fixes what I think might be the cause of CI failures on GitHub for the previous commit, namely the absence of an include file
in examples/MultiHomedServers.

* Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int port) produces an unexpected result" (cont.)

Change port numbers in examples/MultiHomedServers per pull-request comment from me-no-dev ...
"for this test to be valid, both servers should be on the same port. That is how you can make sure that the functionality works."
2021-08-23 15:51:06 +03:00
..
ArduinoOTA Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
AsyncUDP Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
BLE Corrected CLASSIC_BT_ENABLED to CONFIG_BT_CLASSIC_ENABLED. (#5471) 2021-07-29 15:06:43 +03:00
BluetoothSerial Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
DNSServer Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
EEPROM Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
ESP32 Fixed typo in comments. (#5407) 2021-07-19 13:38:40 +03:00
ESPmDNS Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
FFat Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
FS Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
HTTPClient Support for Transfer-Encoding headers that specify "identify" (#5486) 2021-08-02 15:04:48 +03:00
HTTPUpdate Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
HTTPUpdateServer Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
LittleFS Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
NetBIOS Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
Preferences Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
RainMaker Fix compilation for use as IDF component (#5265) 2021-06-09 12:56:12 +03:00
SD Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
SD_MMC Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
SimpleBLE Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
SPI Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
SPIFFS Examples update, add a note for configTime() that only one ntp server is supported by lwip (#5343) 2021-07-22 20:09:28 +03:00
Ticker Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
Update Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
USB Add initial support for USB MSC (#5466) 2021-08-02 15:35:13 +03:00
WebServer Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509) 2021-08-23 15:51:06 +03:00
WiFi Fix issue #5507 "Constructor WebServer::WebServer(IPAddress addr, int… (#5509) 2021-08-23 15:51:06 +03:00
WiFiClientSecure fix: WiFiClientSecure connection timeout (#5398) (#5418) 2021-07-21 13:20:23 +03:00
WiFiProv Bump library versions to 2.0.0 (#5182) 2021-05-18 14:00:49 +03:00
Wire Enable I2C_BUFFER_LENGTH definition for Wire lib (#5172) 2021-06-10 13:15:35 +03:00
README.md v2.0.0 Add support for ESP32S2 and update ESP-IDF to 4.4 (#4996) 2021-04-05 14:23:58 +03:00

ESP32 Libraries

arduino-esp32 includes libraries for Arduino compatibility along with some object wrappers around hardware specific devices. Examples are included in the examples folder under each library folder. The ESP32 includes additional examples which need no special drivers.

ArduinoOTA

Over The Air firmware update daemon. Use espota.py to upload to the device.

AsyncUDP

Asynchronous task driven UDP datagram client/server

AzureIoT

Library to interact with Microsoft Azure IoT services

BLE

Bluetooth Low Energy v4.2 client/server framework

BluetoothSerial

Serial to Bluetooth redirection server

DNSServer

A basic UDP DNS daemon (includes captive portal demo)

EEPROM

Arduino compatibility for EEPROM (using flash)

ESP32

Additional examples

  • AnalogOut
  • Camera
  • ChipID
  • DeepSleep
  • ESPNow
  • FreeRTOS
  • GPIO
  • HallSensor
  • I2S
  • ResetReason
  • RMT
  • Time
  • Timer
  • Touch

ESPmDNS

mDNS service advertising

FFat

FAT indexed filesystem on SPI flash

FS

Filesystem virtualization framework

HTTPClient

A simple HTTP client, compatible with WiFiClientSecure

HTTPUpdate

Download a firmware update from HTTPd and apply it using Update

NetBIOS

NetBIOS name advertiser

Preferences

Flash keystore using ESP32 NVS

ESP RainMaker

End-to-end platform by Espressif that enables Makers to realize their IoT ideas faster

SD

Secure Digital card filesystem using SPI access

SD_MMC

Secure Digital card filesystem using 4-lane access

SimpleBLE

Minimal BLE advertiser

SPI

Arduino compatible Serial Peripheral Interface driver (master only)

SPIFFS

SPI Flash Filesystem (see spiffs-plugin to upload to device)

Ticker

A timer to call functions on an interval

Update

Sketch Update using ESP32 OTA functionality

WebServer

A simple HTTP daemon

WiFi

Arduino compatible WiFi driver (includes Ethernet driver)

WiFiClientSecure

Arduino compatible WiFi client object using embedded encryption

Wire

Arduino compatible I2C driver (master only)