Apps React ThingSpeak IoT says it has been triggered but my Matlab script does not generate an Alert email
이전 댓글 표시
I am uploading data to a ThingSpeak channel from a Arduino MKR1010.
When I run my Matlab Analysis script from the Apps window it runs correctly reads and displays output and generates an Alert email.
I have set a React condition to a numeric field being uploaded.
When this field data meets the React condition the Last Ran time shows that the React file did run but it does not appear to run the Matlab Analysis script or if it does the script does not generate a Alert email.
채택된 답변
추가 답변 (4개)
Vinod
2021년 5월 19일
0 개 추천
Most likely your MATLAB code is triggering the Alert API too frequently and is getting a HTTP 429 code. Take a look at the documentation for the Alerts API. You can also use the Alerts history API to understand more of what is going on.
Barnard Richards
2021년 5월 20일
댓글 수: 1
Christopher Stapels
2021년 5월 20일
You can use the output window to monitor your script, but you may have to moidify the script. One suggestion is to remove a semicolon at the end of a line to see the output. For example, if you wrote
response=webwrite('url')
to trigger the email write, then you would see the value for response in the output window, unless you add a semicolon to the end of the line.
If you are triggering an alert every 30 seconds, you will definitely exceed the limit that you can see in the documentation that Vinod linked.
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
카테고리
도움말 센터 및 File Exchange에서 Agriculture에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
