Codebase list aiocoap / f62cebb
documentation for tools chrysn 9 years ago
6 changed file(s) with 19 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1818 -----
1919
2020 For details on how to usethe aiocoap library, have a look at the :mod:`aiocoap`
21 module documentation, or at the :doc:`examples` provided.
21 module documentation, or at the :doc:`examples` and :doc:`tools` provided.
2222
2323 Relevant URLs
2424 -------------
0 #!/usr/bin/env python3
1
02 # This file is part of the Python aiocoap library project.
13 #
24 # Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
0 #!/usr/bin/env python3
1
02 # This file is part of the Python aiocoap library project.
13 #
24 # Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
00 Usage Examples
11 ==============
22
3 In absence of a complete tutorial, those files can serve as reference
4 implementations for server and client:
3 In absence of a complete tutorial, these files can serve as reference
4 implementations for server and client. In order to test them, run
5 ``./server.py`` in one terminal, and use ``./clientGET.py`` and
6 ``./clientPUT.py`` to interact with it.
57
68 Client
79 ------
911 .. literalinclude:: ../clientGET.py
1012 :language: python
1113 :linenos:
12 :lines: 8-
14 :lines: 10-
15
16 .. literalinclude:: ../clientPUT.py
17 :language: python
18 :linenos:
19 :lines: 10-
1320
1421 Server
1522 ------
1724 .. literalinclude:: ../server.py
1825 :language: python
1926 :linenos:
20 :lines: 8-
27 :lines: 10-
1717 aiocoap.util.asyncio
1818 aiocoap.util.queuewithend
1919 examples
20 tools
2021 LICENSE
0 #!/usr/bin/env python3
1
02 # This file is part of the Python aiocoap library project.
13 #
24 # Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,