mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
WiFiServer - 'rename' available() to accept() (#8419)
* WiFiServer - 'rename' available() to accept() * use server.accept() instead of available() * WiFiServer.accept() and ArduinoWiFiServer class doc update
This commit is contained in:
@ -92,7 +92,7 @@ Serving of this web page will be done in the ``loop()`` where server is waiting
|
||||
|
||||
void loop()
|
||||
{
|
||||
WiFiClient client = server.available();
|
||||
WiFiClient client = server.accept();
|
||||
if (client)
|
||||
{
|
||||
// we have a new client sending some request
|
||||
@ -196,7 +196,7 @@ Complete sketch is presented below.
|
||||
|
||||
void loop()
|
||||
{
|
||||
WiFiClient client = server.available();
|
||||
WiFiClient client = server.accept();
|
||||
// wait for a client (web browser) to connect
|
||||
if (client)
|
||||
{
|
||||
|
Reference in New Issue
Block a user