Getting the time form a feed

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
niccolorgu
 
Posts: 4
Joined: Wed Jan 13, 2021 5:37 pm

Getting the time form a feed

Post by niccolorgu »

I can get a JSON string from the MQTT broker when a feed is updated but although I have set the feed to have a timestamp on update I can't find how to receive it.

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Getting the time form a feed

Post by brubell »

You'd want to use the Get Last Data endpoint for the HTTP API
https://io.adafruit.com/api/docs/#get-last-data

and look for `created_at` in the response body

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”