Apps React ThingSpeak IoT says it has been triggered but my Matlab script does not generate an Alert email
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (4)
Barnard Richards
le 20 Mai 2021
1 vote
Vinod
le 19 Mai 2021
0 votes
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
le 20 Mai 2021
1 commentaire
Christopher Stapels
le 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
le 20 Mai 2021
0 votes
Communautés
Plus de réponses dans ThingSpeak Community
Catégories
En savoir plus sur Agriculture dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
