0

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.
Please be positive and constructive with your questions and comments.

Getting the time form a feed

by niccolorgu on Wed Feb 03, 2021 5:40 pm

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.

niccolorgu
 
Posts: 4
Joined: Wed Jan 13, 2021 5:37 pm

Re: Getting the time form a feed

by brubell on Fri Feb 05, 2021 10:43 am

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

brubell
 
Posts: 1381
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.