examples.rst
1 Simple test 2 ------------ 3 4 Ensure your device works with this simple test. 5 6 .. literalinclude:: ../examples/httpserver_simpletest.py 7 :caption: examples/httpserver_simpletest.py 8 :linenos: 9 10 Temperature test 11 -------------------- 12 13 Send the microcontroller temperature back to the browser with this simple test. 14 15 .. literalinclude:: ../examples/httpserver_temperature.py 16 :caption: examples/httpserver_temperature.py 17 :linenos: 18 19 Simple polling test 20 ------------------- 21 22 If you want your code to do more than just serve web pages, 23 use the start/poll methods as shown in this example. 24 25 .. literalinclude:: ../examples/httpserver_simplepolling.py 26 :caption: examples/httpserver_simplepolling.py 27 :linenos: