You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ESP8266WiFi library the ``ArduinoWiFiServer`` class implements ``available`` and the write-to-all-clients functionality as described in the Arduino WiFi library reference. The PageServer example shows how ``available`` and the write-to-all-clients works.
16
+
17
+
For most use cases the basic WiFiServer class of the ESP8266WiFi library is suitable.
18
+
15
19
Methods and properties described further down are specific to ESP8266. They are not covered in `Arduino WiFi library <https://www.arduino.cc/en/Reference/WiFi>`__ documentation. Before they are fully documented please refer to information below.
16
20
21
+
accept
22
+
~~~~~~
23
+
24
+
Method ``accept()`` returns a waiting client connection. `accept() is documented <https://www.arduino.cc/en/Reference/EthernetServerAccept>`__ for the Arduino Ethernet library.
25
+
26
+
available
27
+
~~~~~~~~~
28
+
.. deprecated:: 3.1.0
29
+
see ``accept``
30
+
31
+
``available`` in the ESP8266WiFi library's WiFiServer class doesn't work as documented for the Arduino WiFi library. It works the same way as ``accept``.
32
+
17
33
write (write to all clients) not supported
18
34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
35
20
36
Please note that the ``write`` method on the ``WiFiServer`` object is not implemented and returns failure always. Use the returned
21
-
``WiFiClient`` object from the ``WiFiServer::available()`` method to communicate with individual clients. If you need to send
37
+
``WiFiClient`` object from the ``WiFiServer::accept()`` method to communicate with individual clients. If you need to send
22
38
the exact same packets to a series of clients, your application must maintain a list of connected clients and iterate over them manually.
0 commit comments