Why I can't sent emails with Matlab Analysis? (Having error 429).
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have doubt about why I can't receive emails.
I'm uploading data with an ESP8266, and I'm trying to send an email alert when Thingspeak is not receiving any data.
When I run the code, it only shows me a message error with the code 429.
I implemented the following code:
channelID = *********;
alertApiKey = 'TAK**************';
alertUrl = "https://api.thingspeak.com/alerts/send";
options = weboptions("HeaderFields", ["ThingSpeak-Alerts-API-Key", alertApiKey ]);
alertSubject = sprintf("ALERTA RED FRÍA");
moistureData = thingSpeakRead(channelID,'NumDays',1,'Fields',1);
if isempty(moistureData)
alertBody = 'No hay datos disponibles. Posible falla en la conexión a internet o falla eléctrica';
end
try
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
catch someException
fprintf("Failed to send alert: %s\n", someException.message);
end
0 Kommentare
Antworten (1)
Christopher Stapels
am 19 Aug. 2021
See Error Codes. 429 is too many requests. You can see the limits on the send alert page in the limitations section.
I reccomend using the no data insert condition in react to track your channel.
0 Kommentare
Communitys
Weitere Antworten in ThingSpeak Community
Siehe auch
Kategorien
Mehr zu ThingSpeak finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!