Data Source for downloaded data from an HTTP API advice
Afficher commentaires plus anciens
Hi
I am downloading data from any HTTP API. As shown in code below:
for i = 1:datelistsize(2)
disp([datelist.start(i),datelist.stop(i)]);
live_data_downloaded_data_temp =device_data(deviceid,datelist.start(i),''+datelist.stop(i));
live_data_downloaded_data =[live_data_downloaded_data live_data_downloaded_data_temp'];
end
save("deviceid_"+deviceid,'live_data_downloaded_data','ref_data_timestamp','ref_data_sensordata')
As time progresses i do not want to be re downloading data that i alread have.
If i am correct i could use datasource.
I would need to store the last times stamp of my data, then what i aim to do is on every instance i call my code, i would save "live_data_downloaded_data" into a new .mat file. Then when i need to read the data, i would have multiple files.
Does anyone have example how i would need to modify my code, so a data source can acklowedge it?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Downloads dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!