Skip to content

Commit

Permalink
docs migration guide: WiFiServer changes (#9458)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Saavedra Vaz <[email protected]>
  • Loading branch information
JAndrassy and lucasssvaz authored Apr 6, 2024
1 parent d805b88 commit 0a47f34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en/migration_guides/2.x_to_3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ Functional changes
******************

* In Arduino (and other frameworks) the method named ``flush()`` is intended to send out the transmit buffer content. ``WiFiClient`` and ``WiFiUDP`` method ``flush()`` won't clear the receive buffer anymore. A new method called ``clear()`` is now used for that. Currently ``flush()`` does nothing in ``WiFiClient``, ``WiFiClientSecure`` and ``WiFiUDP``.
* ``WiFiServer`` has functions ``accept()`` and ``available()`` with the same functionality. In Arduino, ``available()`` should work differently so it is now deprecated.
* ``WiFiServer`` had unimplemented write functions inherited from ``Print`` class. These are now removed. Also unimplemented method ``stopAll()`` is removed. The methods were unimplemented because WiFiServer doesn't manage connected WiFiClient objects for print-to-all-clients functionality.

0 comments on commit 0a47f34

Please sign in to comment.