We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119c818 commit c197393Copy full SHA for c197393
adafruit_io.py
@@ -249,4 +249,11 @@ def receive_random_data(self, generator_id):
249
"""
250
path = self._compose_path("integrations/words/{0}".format(generator_id))
251
return self._get(path)
252
-
+
253
+ def receive_time(self, time_type):
254
+ """
255
+ Returns the current time from the Adafruit IO Server
256
+ :param string time_type: Type of time to be returned: `millis`, `seconds`, `ISO-8601`
257
258
+ path = 'https://io.adafruit.com/api/v2/time/{0}'.format(time_type)
259
+ return self._get(path)
0 commit comments