フィルターのクリア

Segmenting a long time period into small monthly or weekly block for http get requests

1 回表示 (過去 30 日間)
Dharmesh Joshi
Dharmesh Joshi 2022 年 11 月 11 日
回答済み: Alvaro 2023 年 1 月 27 日
Hi
I have sensor data which i need to download from my API. The amount of data is fairly large as there a sample for every minute and i am downloading several months of data. My API and table storage is on Azure platform, and one of the limitation is that if a HTTP get request takes longer then 230 seconds, it will terminate that request and my request is taking longer then 230 seconds due to large amount of data.
This is my code;
live_data_start_timestamp='2022-09-06T13:00:00Z';
live_data_end_timestamp= '2022-11-07T23:59:00Z';
live_data_downloaded_data =device_data(deviceid,live_data_start_timestamp,live_data_end_timestamp);%g
As you can see my time period is over 2 months.
Is it possible to that i can generate multiple time start and stop time stamps, based on the specified duration where each new duration could be a maybe 1 or 2 weeks , so that when i call device_data, it does not take as long for output the request?
Is it possible to also call multple http get request at the same time on Matlab?

回答 (1 件)

Alvaro
Alvaro 2023 年 1 月 27 日
You should be able to generate sequences of time intervals with datetime:
I am not sure how multiple requests are processed but you can use the KeepAliveTimeout option in HTTPOptions to keep the server connection open (which seems to suggest that messages are processed one after the other).

カテゴリ

Help Center および File ExchangeCall Web Services from MATLAB Using HTTP についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by