@@ -9,8 +9,8 @@ Introduction
9
9
:target: https://discord.gg/nBQh6qu
10
10
:alt: Discord
11
11
12
- .. image :: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Adafruit_IO .svg?branch=master
13
- :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Adafruit_IO
12
+ .. image :: https://travis-ci.com/adafruit/Adafruit_CircuitPython_AdafruitIO .svg?branch=master
13
+ :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_AdafruitIO
14
14
:alt: Build Status
15
15
16
16
CircuitPython wrapper library for communicating with `Adafruit IO <http://io.adafruit.com >`_.
@@ -30,25 +30,35 @@ This is easily achieved by downloading
30
30
Usage Example
31
31
=============
32
32
33
- Create an Adafruit IO Client object
33
+ Create an Adafruit IO Client object
34
+
34
35
.. code-block :: python
35
- io = RESTClient(ADAFRUIT_IO_USER, ADAFRUIT_IO_KEY, wifi)
36
+
37
+ io = RESTClient(ADAFRUIT_IO_USER , ADAFRUIT_IO_KEY , wifi)
36
38
37
39
Sending data to an Adafruit IO feed
40
+
38
41
.. code-block :: python
39
- io.send_data(feed, data)
42
+
43
+ io.send_data(feed, data)
40
44
41
45
Receiving data from an Adafruit IO feed
46
+
42
47
.. code-block :: python
43
- data = io.receive_data(feed)
48
+
49
+ data = io.receive_data(feed)
44
50
45
51
Creating a new feed named circuitpython with a description
52
+
46
53
.. code-block :: python
47
- feed = io.create_new_feed('circuitpython', 'an Adafruit IO CircuitPython feed')
54
+
55
+ feed = io.create_new_feed(' circuitpython' , ' an Adafruit IO CircuitPython feed' )
48
56
49
57
Listing the record of a specified feed:
58
+
50
59
.. code-block :: python
51
- feed = io.get_feed('circuitpython')
60
+
61
+ feed = io.get_feed(' circuitpython' )
52
62
53
63
Contributing
54
64
============
0 commit comments