Getting -401 error code when using WritingMulitpleFields
Ältere Kommentare anzeigen
I modified the WriteMultipleFields example to include a MAX31855 which measures the board temp and a K-type thermocouple. I seem to be getting the "Problem updating channel. HTTP error code -401" in my seriel monitor however it seems to updating my channel properly. I copied and pasted my API so I dont think there is a typo, especially since it updates the channel. Any ideas on how to fix this? or can it be left alone since it still works?
Also, can you change the timezone in the visualization from GMT to a different zone? I updated my profile but that didn't do it
I am using an Arduino Nano 33 IoT
Akzeptierte Antwort
Weitere Antworten (1)
Vinod
am 15 Mai 2021
1 Stimme
What is most likely happening is you are making requests to the server far exceeding your allowed data rate. One out of every 15 or more requests is being accepted and updates your channel. The other requests get a 401 and are rejected. These numbers assume you have a free license.
You must immediately reduce your rate of updating ThingSpeak to less than one update every 15s. Otherwise, it will be treated as a deliberate abuse of service and appropriate actions taken.
Communitys
Weitere Antworten in ThingSpeak Community
Kategorien
Mehr zu Write Data to 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!
