File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
4850Alternatively 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
5659Your program can use either or both the REST API client and MQTT client, depending on your needs.
5760
You can’t perform that action at this time.
0 commit comments