Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

How to use data/previous, data/next ?
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.

How to use data/previous, data/next ?

by yennifs on Tue Aug 11, 2020 3:53 pm

Hi;
I am confused about using these endpoints and I don't understand how the could possibly work without knowing a starting point. Do I need to pass a current ID so that the one before or after it can be returned?

I get results from:
data/retain
data/first
data/last

but I get 404 errors from
data/next
data/previous

Any advice?

yennifs
 
Posts: 9
Joined: Tue Jun 23, 2020 6:28 pm

Re: How to use data/previous, data/next ?

by brubell on Fri Aug 14, 2020 9:47 am

but I get 404 errors from
data/next
data/previous


data/previous is not a valid endpoint, data/last is the endpoint (https://io.adafruit.com/api/docs/#get-last-data)

As for data/next returning a 404, could you please post the code you're using to make the HTTP request?

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

Please be positive and constructive with your questions and comments.