File tree Expand file tree Collapse file tree 1 file changed +2
-34
lines changed Expand file tree Collapse file tree 1 file changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -23,48 +23,16 @@ This driver depends on:
23
23
24
24
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython >`_
25
25
26
- You'll also need a library to communicate with an ESP32 as a coprocessor using a WiFiManager object. This library supports connecting an ESP32 using either SPI or UART.
27
-
28
- * SPI: `Adafruit CircuitPython ESP32SPI <https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI >`_
29
-
30
- * UART: `Adafruit CircuitPython ESP_ATcontrol <https://github.com/adafruit/Adafruit_CircuitPython_ESP_ATcontrol >`_
31
-
32
26
Please ensure all dependencies are available on the CircuitPython filesystem.
33
27
This is easily achieved by downloading
34
28
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
35
29
36
30
Usage Example
37
31
=============
38
32
39
- Create an Adafruit IO Client object
40
-
41
- .. code-block :: python
42
-
43
- io = RESTClient(aio_username, aio_key, wifi)
44
-
45
- Sending data to an Adafruit IO feed
46
-
47
- .. code-block :: python
48
-
49
- io.send_data(feed, data)
50
-
51
- Receiving data from an Adafruit IO feed
52
-
53
- .. code-block :: python
54
-
55
- data = io.receive_data(feed)
56
-
57
- Creating a new feed named circuitpython with a description
58
-
59
- .. code-block :: python
60
-
61
- feed = io.create_new_feed(' circuitpython' , ' an Adafruit IO CircuitPython feed' )
62
-
63
- Listing the record of a specified feed:
33
+ Usage examples for the Adafruit IO HTTP API are within the examples/http folder.
64
34
65
- .. code-block :: python
66
-
67
- feed = io.get_feed(' circuitpython' )
35
+ Usage examples for the Adafruit IO MQTT API are within the examples/mqtt folder.
68
36
69
37
Contributing
70
38
============
You can’t perform that action at this time.
0 commit comments