I want to create iOS app, which will show me an actual temperature from my API. I created API, which shows me, which IDs of sensors are available in this format:
1;2;100
It's means, I have 3 sensors with ID 1, 2 and 100... When I have this I can get actual temperature from api, using this string http://someurl.com/api/actual/ID when ID is an ID of sensor which I want... It gives me this:
Name_of_sensor;02/26/2015;21:16;22.88
When: - Name of sensor is name of sensor of course - 02/26/2015 is a date when was this temperature captured - 21:16 is a time when was this temperature captured - 22.88 is actual temp in C
How to use the first string to get available IDs and after that get values of all sensors and take it in the variables? For example: variables for ID 1 could be name1, date1, time1 and value1