WiFiServer - 'rename' available() to accept() by JAndrassy · Pull Request #8419 · esp8266/Arduino (original) (raw)
If this PR gets positive reviews, I will add commits with examples and documentation changes.
The available() method in WiFiServer and WiFiServerSecureBearSSL is not implemented as the available() in the Arduino WiFi library and other WiFi libraries by Arduino. The implementation of available() matches the Ethernet library's accept() method added in 2018.
This PR marks available() in WiFiServer as deprecated and adds the accept() method with implementation identical to available().
My addition to the ESP8266WiFi library, the ArduinoWiFiServer class has available() implemented the Arduino way.