@@ -209,14 +209,14 @@ def subscribe(self, feed_key=None, group_key=None, shared_user=None):
209
209
:param str group_key: Adafruit IO Group key.
210
210
:param str shared_user: Owner of the Adafruit IO feed, required for shared feeds.
211
211
212
- Example of subscribing to an Adafruit IO Feed named 'temperature':
212
+ Example of subscribing to an Adafruit IO Feed named 'temperature'.
213
213
214
214
.. code-block:: python
215
215
216
216
client.subscribe('temperature')
217
217
218
- Example of subscribing to two Adafruit IO feeds: ` temperature`
219
- and ` humidity`
218
+ Example of subscribing to two Adafruit IO feeds: ' temperature'
219
+ and ' humidity'.
220
220
221
221
.. code-block:: python
222
222
@@ -265,7 +265,7 @@ def subscribe_to_weather(self, weather_record, forecast):
265
265
266
266
def subscribe_to_time (self , time_type ):
267
267
"""Adafruit IO provides some built-in MQTT topics for getting the current server time.
268
- :param str time_type: Current Adafruit IO server time. Can be ` seconds`, ` millis` , or ` iso` .
268
+ :param str time_type: Current Adafruit IO server time. Can be ' seconds', ' millis' , or ' iso' .
269
269
Information about these topics can be found on the Adafruit IO MQTT API Docs.:
270
270
https://io.adafruit.com/api/docs/mqtt.html#time-topics
271
271
"""
@@ -283,14 +283,14 @@ def unsubscribe(self, feed_key=None, group_key=None, shared_user=None):
283
283
:param str group_key: Adafruit IO Group key.
284
284
:param str shared_user: Owner of the Adafruit IO feed, required for shared feeds.
285
285
286
- Example of unsubscribing from a Feed:
286
+ Example of unsubscribing from a feed.
287
287
288
288
.. code-block:: python
289
289
290
290
client.unsubscribe('temperature')
291
291
292
- Example of unsubscribing from two feeds: ` temperature`
293
- and ` humidity`
292
+ Example of unsubscribing from two feeds: ' temperature'
293
+ and ' humidity'
294
294
295
295
.. code-block:: python
296
296
@@ -316,6 +316,7 @@ def unsubscribe(self, feed_key=None, group_key=None, shared_user=None):
316
316
def publish_multiple (self , feeds_and_data , timeout = 3 , is_group = False ):
317
317
"""Publishes multiple data points to multiple feeds or groups with a variable
318
318
timeout.
319
+
319
320
:param str feeds_and_data: List of tuples containing topic strings and data values.
320
321
:param int timeout: Delay between publishing data points to Adafruit IO, in seconds.
321
322
:param bool is_group: Set to True if you're publishing to a group.
@@ -342,6 +343,7 @@ def publish_multiple(self, feeds_and_data, timeout=3, is_group=False):
342
343
# pylint: disable=too-many-arguments
343
344
def publish (self , feed_key , data , metadata = None , shared_user = None , is_group = False ):
344
345
"""Publishes to an An Adafruit IO Feed.
346
+
345
347
:param str feed_key: Adafruit IO Feed key.
346
348
:param str data: Data to publish to the feed or group.
347
349
:param int data: Data to publish to the feed or group.
@@ -417,6 +419,7 @@ class IO_HTTP:
417
419
"""
418
420
Client for interacting with the Adafruit IO HTTP API.
419
421
https://io.adafruit.com/api/docs/#adafruit-io-http-api
422
+
420
423
:param str adafruit_io_username: Adafruit IO Username
421
424
:param str adafruit_io_key: Adafruit IO Key
422
425
:param wifi_manager: WiFiManager object from ESPSPI_WiFiManager or ESPAT_WiFiManager
0 commit comments