this code works with me fine and i am able to get the first record
///////////////////////////////
if (WiFi.status() == WL_CONNECTED) { //Check WiFi connection status
HTTPClient http; //Declare an object of class HTTPClient
http.begin("https://io.adafruit.com/api/v2/Hero1980 ... er/data/[b]first[/b]?X-AIO-Key=a10ccd958************346e8d139");
int httpCode = http.GET(); //Send the request
if (httpCode > 0) { //Check the returning code
String payload = http.getString(); //Get the request response payload
Serial.println(payload); //Print the response payload
}
http.end(); //Close connection
}
delay(30000); //Send a request every 30 seconds
}
///////////////////////////////////////
but what if i want to get a specific record by id instead of first or last is it possible ?
Need help please i want to get a specific records by it is
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Hero1980
- Posts: 2
- Joined: Sun Aug 19, 2018 4:18 pm
Please be positive and constructive with your questions and comments.