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
Copy file name to clipboardExpand all lines: docs/en/migration_guides/2.x_to_3.0.rst
+6-2
Original file line number
Diff line number
Diff line change
@@ -189,9 +189,13 @@ Changes in APIs
189
189
Functional changes
190
190
******************
191
191
192
+
* Default pins for some SoCs have been changed to avoid conflicts with other peripherals:
193
+
* ESP32's UART1 RX and TX pins are now GPIO26 and GPIO27, respectively;
194
+
* ESP32's UART2 RX and TX pins are now GPIO4 and GPIO25, respectively;
195
+
* ESP32-S2's UART1 RX and TX pins are now GPIO4 and GPIO5, respectively.
192
196
* It is now possible to detach UART0 pins by calling ``end()`` with no previous call of ``begin()``.
193
197
* It is now possible to call ``setPins()`` before ``begin()`` or in any order.
194
-
* ``setPins(``) will detach any previous pins that have been changed.
198
+
* ``setPins()`` will detach any previous pins that have been changed.
195
199
* ``begin(baud, rx, tx)`` will detach any previous attached pins.
196
200
* ``setPins()`` or ``begin(baud, rx, tx)`` when called at first, will detach console RX0/TX0, attached in boot.
197
201
* Any pin set as -1 in ``begin()`` or ``setPins()`` won't be changed nor detached.
@@ -206,4 +210,4 @@ Functional changes
206
210
207
211
* 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``.
208
212
* ``WiFiServer`` has functions ``accept()`` and ``available()`` with the same functionality. In Arduino, ``available()`` should work differently so it is now deprecated.
209
-
* ``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.
213
+
* ``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 commit comments