Apps React ThingSpeak IoT says it has been triggered but my Matlab script does not generate an Alert email
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (4)
Barnard Richards
il 20 Mag 2021
1 voto
Vinod
il 19 Mag 2021
0 voti
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
il 20 Mag 2021
1 Commento
Christopher Stapels
il 20 Mag 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
il 20 Mag 2021
0 voti
Community
Più risposte nel ThingSpeak Community
Categorie
Scopri di più su Agriculture in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
