Skip to content

Commit

Permalink
fix markdown syntax in rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Feb 11, 2024
1 parent eaaca87 commit d20339b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/esp8266wifi/generic-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ To get events to work we need to complete just two steps:

1. Declare the event handler:

``cpp WiFiEventHandler disconnectedEventHandler;``
.. code:: cpp
WiFiEventHandler disconnectedEventHandler;
2. Select particular event (in this case ``onStationModeDisconnected``)
and add the code to be executed when event is fired.
Expand Down
4 changes: 3 additions & 1 deletion doc/esp8266wifi/soft-access-point-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ Sketch is small so analysis shouldn't be difficult. In first line we are includi
Setting up of the access point ``ESPsoftAP_01`` is done by executing:

``cpp boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");``
.. code:: cpp
boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");
If this operation is successful then ``result`` will be ``true`` or ``false`` if otherwise. Basing on that either ``Ready`` or ``Failed!`` will be printed out by the following ``if - else`` conditional statement.

Expand Down

0 comments on commit d20339b

Please sign in to comment.