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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- niccolorgu
- Posts: 4
- Joined: Wed Jan 13, 2021 5:37 pm
Getting the time form a feed
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.
- brubell
- Learn User Page
- Posts: 2010
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Getting the time form a feed
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
https://io.adafruit.com/api/docs/#get-last-data
and look for `created_at` in the response body
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.