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
Fixesesp8266#5116Fixesesp8266#2743
The Arduino WiFiClient object allows sending the same packet to all
connected clients of a WiFiServer. In their implementation it may make
sense, but on the 8266 with things like SSL it doesn't.
Update the docs to note that WiFiServer::write() is a no-op, and that
the app should use the WiFiCliebnt::write() on all connected clients as
appropriate.
Copy file name to clipboardExpand all lines: doc/esp8266wifi/server-class.rst
+7
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,13 @@ Methods documented for the `Server Class <https://www.arduino.cc/en/Reference/Wi
14
14
15
15
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
16
17
+
write (write to all clients) not supported
18
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
+
20
+
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
22
+
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