Apps React ThingSpeak IoT says it has been triggered but my Matlab script does not generate an Alert email
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (4)
Barnard Richards
am 20 Mai 2021
1 Stimme
Vinod
am 19 Mai 2021
0 Stimmen
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
am 20 Mai 2021
1 Kommentar
Christopher Stapels
am 20 Mai 2021
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.
Barnard Richards
am 20 Mai 2021
0 Stimmen
Communitys
Weitere Antworten in ThingSpeak Community
Kategorien
Mehr zu Read Data from Channel finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
