Skip to content

Commit 29dcc0c

Browse files
fixup Client and MQTTClient calls
there si a missing parameter 'user' in the documentation.
1 parent 82a5155 commit 29dcc0c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/quickstart.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Here's a short example of how to send a new value to a feed (creating the feed i
66
77
# Import library and create instance of REST client.
88
from Adafruit_IO import Client
9-
aio = Client('YOUR ADAFRUIT IO KEY')
9+
aio = Client('YOUR ADAFRUIT USER', 'YOUR ADAFRUIT IO KEY')
1010
1111
# Send the value 100 to a feed called 'Foo'.
1212
aio.send('Foo', 100)
@@ -41,17 +41,20 @@ Then a REST API client can be created with code like:
4141

4242
.. code-block:: python
4343
44-
aio = Client('xxxxxxxxxxxx')
44+
aio = Client('user', 'xxxxxxxxxxxx')
4545
4646
Where ``'xxxxxxxxxxxx'`` is your Adafruit IO API key.
47+
Where ``'user'`` is your Adafruit username.
48+
4749

4850
Alternatively an MQTT client can be created with code like:
4951

5052
.. code-block:: python
5153
52-
mqtt = MQTTClient('xxxxxxxxxxxx')
54+
mqtt = MQTTClient('user', 'xxxxxxxxxxxx')
5355
5456
Again where ``'xxxxxxxxxxxx'`` is your Adafruit IO API key.
57+
Again where ``'user'`` is your Adafruit username.
5558

5659
Your program can use either or both the REST API client and MQTT client, depending on your needs.
5760

0 commit comments

Comments
 (0)