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
-Quick Start with [PlatformIO IDE](http://docs.platformio.org/page/ide/atom.html#quick-start) or [PlatformIO Core](http://docs.platformio.org/page/core.html)
Copy file name to clipboardExpand all lines: doc/esp8266wifi/client-examples.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ This time we are going to concentrate just on retrieving a web page contents sen
28
28
Get Connected to Wi-Fi
29
29
~~~~~~~~~~~~~~~~~~~~~~
30
30
31
-
We should start with connecting the module to an access point to obtain an access to internet. The code to provide this functionality has been already discussed in chapter `Quick Start <readme.md#quick-start>`__. Please refer to it for details.
31
+
We should start with connecting the module to an access point to obtain an access to internet. The code to provide this functionality has been already discussed in chapter `Quick Start <readme.rst#quick-start>`__. Please refer to it for details.
32
32
33
33
Select a Server
34
34
~~~~~~~~~~~~~~~
@@ -257,4 +257,4 @@ For more client examples please check
257
257
258
258
- `WiFiClient.ino <https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino>`__ - this sketch sends data via HTTP GET requests to data.sparkfun.com service.
259
259
260
-
For the list of functions provided to manage clients, please refer to the `Client Class :arrow\_right: <client-class.md>`__ documentation.
260
+
For the list of functions provided to manage clients, please refer to the `Client Class :arrow\_right: <client-class.rst>`__ documentation.
Copy file name to clipboardExpand all lines: doc/esp8266wifi/client-secure-examples.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Client Secure
4
4
-------------
5
5
6
-
The client secure is a `client <#client>`__ but secure. Application example below will be easier to follow if you check similar and simpler `example <client-examples.md>`__ for the "ordinary" client. That being said we will concentrate on discussing the code that is specific to the client secure.
6
+
The client secure is a `client <#client>`__ but secure. Application example below will be easier to follow if you check similar and simpler `example <client-examples.rst>`__ for the "ordinary" client. That being said we will concentrate on discussing the code that is specific to the client secure.
7
7
8
8
Table of Contents
9
9
-----------------
@@ -71,7 +71,7 @@ We can obtain the ``fingerprint`` for specific ``host`` using a web browser. For
71
71
72
72
alt text
73
73
74
-
Remaining steps look almost identical as for the `non-secure client example <client-examples.md>`__.
74
+
Remaining steps look almost identical as for the `non-secure client example <client-examples.rst>`__.
75
75
76
76
Connect to the Server
77
77
~~~~~~~~~~~~~~~~~~~~~
@@ -106,7 +106,7 @@ If this check fails, it is up to you to decide if to proceed further or abort co
106
106
GET Response from the Server
107
107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
108
108
109
-
In the next steps we should execute GET command. This is done is similar way as discussed in `non-secure client example <client-examples.md>`__.
109
+
In the next steps we should execute GET command. This is done is similar way as discussed in `non-secure client example <client-examples.rst>`__.
To see a sample application with ``WiFiEventHandler``, please check separate section with `examples :arrow\_right: <generic-examples.md>`__ dedicated specifically to the Generic Class..
30
+
To see a sample application with ``WiFiEventHandler``, please check separate section with `examples :arrow\_right: <generic-examples.rst>`__ dedicated specifically to the Generic Class..
Copy file name to clipboardExpand all lines: doc/esp8266wifi/generic-examples.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Generic
4
4
-------
5
5
6
-
In the first `example <readme.md#quick-start>`__ of the ESP8266WiFi library documentation we have discussed how to check when module connects to the Wi-Fi network. We were waiting until connection is established. If network is not available, the module could wait like that for ever doing nothing else. Another `example <scan-examples.md#async-scan>`__ on the Wi-Fi asynchronous scan mode demonstrated how to wait for scan result and do in parallel something else - blink a LED not disturbing the blink pattern. Let's apply similar functionality when connecting the module to an access point.
6
+
In the first `example <readme.rst#quick-start>`__ of the ESP8266WiFi library documentation we have discussed how to check when module connects to the Wi-Fi network. We were waiting until connection is established. If network is not available, the module could wait like that for ever doing nothing else. Another `example <scan-examples.rst#async-scan>`__ on the Wi-Fi asynchronous scan mode demonstrated how to wait for scan result and do in parallel something else - blink a LED not disturbing the blink pattern. Let's apply similar functionality when connecting the module to an access point.
7
7
8
8
Table of Contents
9
9
-----------------
@@ -29,7 +29,7 @@ We would like to write a code that will inform us that connection to Wi-Fi netwo
29
29
Event Driven Methods
30
30
~~~~~~~~~~~~~~~~~~~~
31
31
32
-
The list of all such methods is provided in `Generic Class <generic-class.md>`__ documentation.
32
+
The list of all such methods is provided in `Generic Class <generic-class.rst>`__ documentation.
33
33
34
34
We would like to use two of them: \* ``onStationModeGotIP`` called when station is assigned IP address. This assignment may be done by DHCP client or by executing ``WiFi.config(...)``. \* ``onStationModeDisconnected`` called when station is disconnected from Wi-Fi network. The reason of disconnection does not matter. Event will be triggered both if disconnection is done from the code by executing ``WiFi.disconnect()``, because the Wi-Fi signal is weak, or because the access point is switched off.
35
35
@@ -122,4 +122,4 @@ Conclusion
122
122
123
123
Check out events from generic class. They will help you to write more compact code. Use them to practice splitting your code into separate tasks that are executed asynchronously.
124
124
125
-
For review of functions included in generic class, please refer to the `Generic Class <generic-class.md>`__ documentation.
125
+
For review of functions included in generic class, please refer to the `Generic Class <generic-class.rst>`__ documentation.
Copy file name to clipboardExpand all lines: doc/esp8266wifi/readme.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ The same sketch without ``Serial.setDebugOutput(true)`` will print out only the
302
302
Enable Debugging in IDE
303
303
~~~~~~~~~~~~~~~~~~~~~~~
304
304
305
-
Arduino IDE provides convenient method to `enable debugging <https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.md>`__ for specific libraries.
305
+
Arduino IDE provides convenient method to `enable debugging <https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst>`__ for specific libraries.
Copy file name to clipboardExpand all lines: doc/esp8266wifi/scan-examples.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -240,4 +240,4 @@ Conclusion
240
240
241
241
The scan class API provides comprehensive set of methods to do scanning in both synchronous as well as in asynchronous mode. Therefore we can easy implement code that is doing scanning in background without disturbing other processes running on ESP8266 module.
242
242
243
-
For the list of functions provided to manage scan mode please refer to the `Scan Class <scan-class.md>`__ documentation.
243
+
For the list of functions provided to manage scan mode please refer to the `Scan Class <scan-class.rst>`__ documentation.
Copy file name to clipboardExpand all lines: doc/esp8266wifi/station-examples.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Station
4
4
-------
5
5
6
-
Example of connecting to an access point has been shown in chapter `Quick Start <readme.md#quick-start>`__. In case connection is lost, ESP8266 will automatically reconnect to the last used access point, once it is again available.
6
+
Example of connecting to an access point has been shown in chapter `Quick Start <readme.rst#quick-start>`__. In case connection is lost, ESP8266 will automatically reconnect to the last used access point, once it is again available.
7
7
8
8
Can we provide more robust connection to Wi-Fi than that?
9
9
@@ -19,7 +19,7 @@ Table of Contents
19
19
Introduction
20
20
~~~~~~~~~~~~
21
21
22
-
Following the example in\ `Quick Start <readme.md#quick-start>`__, we would like to go one step further and made ESP connect to next available access point if current connection is lost. This functionality is provided with 'ESP8266WiFiMulti' class and demonstrated in sketch below.
22
+
Following the example in\ `Quick Start <readme.rst#quick-start>`__, we would like to go one step further and made ESP connect to next available access point if current connection is lost. This functionality is provided with 'ESP8266WiFiMulti' class and demonstrated in sketch below.
23
23
24
24
.. code:: cpp
25
25
@@ -100,7 +100,7 @@ Function ``monitorWiFi()`` is in place to show when connection is lost by displa
100
100
Can we Make it Simpler?
101
101
~~~~~~~~~~~~~~~~~~~~~~~
102
102
103
-
Please note that you may simplify this sketch by removing function ``monitorWiFi()`` and putting inside ``loop()`` only ``wifiMulti.run()``. ESP will still reconnect between configured access points if required. Now you won't be able to see it on serial monitor unless you add ``Serial.setDebugOutput(true)`` as described in point `Enable Wi-Fi Diagnostic <readme.md#enable-wi-fi-diagnostic>`__.
103
+
Please note that you may simplify this sketch by removing function ``monitorWiFi()`` and putting inside ``loop()`` only ``wifiMulti.run()``. ESP will still reconnect between configured access points if required. Now you won't be able to see it on serial monitor unless you add ``Serial.setDebugOutput(true)`` as described in point `Enable Wi-Fi Diagnostic <readme.rst#enable-wi-fi-diagnostic>`__.
104
104
105
105
Updated sketch for such scenario will look as follows:
Copy file name to clipboardExpand all lines: doc/esp8266wifi/udp-examples.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Once we have libraries in place we need to create a ``WiFiUDP`` object. Then we
41
41
Wi-Fi Connection
42
42
~~~~~~~~~~~~~~~~
43
43
44
-
At the beginning of ``setup()`` let's implement typical code to connect to an access point. This has been discussed in `Quick Start <readme.md#quick-start>`__. Please refer to it if required.
44
+
At the beginning of ``setup()`` let's implement typical code to connect to an access point. This has been discussed in `Quick Start <readme.rst#quick-start>`__. Please refer to it if required.
0 commit comments