Apps React ThingSpeak IoT says it has been triggered but my Matlab script does not generate an Alert email
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (4)
Barnard Richards
el 20 de Mayo de 2021
1 voto
Vinod
el 19 de Mayo de 2021
0 votos
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
el 20 de Mayo de 2021
1 comentario
Christopher Stapels
el 20 de Mayo de 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
el 20 de Mayo de 2021
0 votos
Comunidades de usuarios
Más respuestas en ThingSpeak Community
Categorías
Más información sobre Agriculture en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
