Thingspeak Error Message on one of my MATLAB analyses

17 ビュー (過去 30 日間)
Sendhoran Manokaran
Sendhoran Manokaran 2020 年 5 月 4 日
Hello. I am doing a Thingspeak project and I am having this issue that is printed out on only one of my MATLAB analyses which is:
Error using matlab.internal.webservices.HTTPConnector/copyContentToByteArray (line 396)
The server returned the status 429 with message "Too Many Requests" in response to the request to URL
Error in readContentFromWebService (line 46)
byteArray = copyContentToByteArray(connection);
Error in webwrite (line 139)
[varargout{1:nargout}] = readContentFromWebService(connection, options);
Error in High humidity (line 8)
result = webwrite(alert_url, jsonmessage, options);
Can I know what this issue means? The rest of my analyses do not have an issue -- only one of them does.
  6 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 4 日
you mention private channels. Are you using thingspeak? I do not know very much about thingspeak
Sendhoran Manokaran
Sendhoran Manokaran 2020 年 5 月 4 日
Yup i am using Thingspeak

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2020 年 5 月 4 日
You are making your thingspeak requests too quickly. Bulk requests should not be any less than 15 seconds apart, and if your bulk request is large then you might have to wait extra time.
  1 件のコメント
Christopher Stapels
Christopher Stapels 2020 年 5 月 6 日
編集済み: Christopher Stapels 2020 年 5 月 6 日
Bulk Write JSON Data see the Limitations section at the bottom.
The reacts are set to stop triggering erroed code after a few tries to prevent wasteful MATLAB calls.

サインインしてコメントする。


Nazmi Rosly
Nazmi Rosly 2021 年 8 月 16 日
Hi. Im trying to send data from matlab which is the data from serial monitor from arduino. It is fine until 9th of data and then it stopped and says :
Error using Untitled (line 27)
'Values' must have a maximum of 9 elements, including the timestamp.
My coding is:
clear all
s = serial('com4');
fopen(s);
i = 1;
while(1)
data(i)= str2double(fscanf(s));
plot(data);
title('Temperature Monitoring')
xlabel('Time')
ylabel('Temperature')
pause(15);
i=i+1;
%thingSpeakWrite(1463959,data,'WriteKey','9OUSQA9OXZU0EO4X')
% Generate timestamps for the data
%tStamps = datetime('now')-minutes(9):minutes(1):datetime('now');
channelID = 1463959; % Change to your Channel ID
writeKey = '9OUSQA9OXZU0EO4X'; % Change to your Write API Key
% Write 10 values to each field of your channel along with timestamps
tStamp = datetime('now')
thingSpeakWrite(1463959,data,'WriteKey','9OUSQA9OXZU0EO4X','TimeStamp',tStamp)
end
  1 件のコメント
Christopher Stapels
Christopher Stapels 2021 年 8 月 16 日
Can you start a new post instead of adding onto this one? Its definitely a different issue.

サインインしてコメントする。

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeThingSpeak についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by