doc/messaging: expand examples

Drop use of toggle via plugin.
This commit is contained in:
Laurens Valk
2021-01-13 15:13:51 +01:00
parent 8f637c52cd
commit 5bbbff2550
+15 -19
View File
@@ -64,25 +64,6 @@ and the client can send a message to the server.
An example network with one server and one clients.
.. toggle-header::
:header: **Show/hide full server example**
**Example: EV3 Bluetooth Server.**
This is the full version of the excerpt shown in :numref:`fig_messaging`.
.. literalinclude:: ../../examples/ev3/bluetooth_server/server.py
.. toggle-header::
:header: **Show/hide full client example**
**Example: EV3 Bluetooth Client.**
This is the full version of the excerpt shown in :numref:`fig_messaging`.
.. literalinclude:: ../../examples/ev3/bluetooth_client/client.py
The only difference between the client and the server is which one initiates
the connection at the beginning of the program:
@@ -123,6 +104,21 @@ numbers, or text), you can choose one of the Mailboxes below.
.. autoclass:: TextMailbox
:no-members:
Examples
-----------------
**EV3 Bluetooth Server**
This is the full version of the excerpt shown in :numref:`fig_messaging`.
.. literalinclude:: ../../examples/ev3/bluetooth_server/server.py
**EV3 Bluetooth Client**
This is the full version of the excerpt shown in :numref:`fig_messaging`.
.. literalinclude:: ../../examples/ev3/bluetooth_client/client.py
Making bigger networks
----------------------