Can only access Write API every >15minutes

1 回表示 (過去 30 日間)
JH du Toit
JH du Toit 2020 年 10 月 8 日
回答済み: M du Toit 2020 年 10 月 9 日
Good day,
I have an application where I write to ThingSpeak every 20 seconds on the Free option. It worked for several months perfectly i.e. getting data to the server every 20 seconds. Since a week or 2 ago, my device tries to send data to the API, but it gets an error now and is only successfully sending data to ThingSpeak approx every > 15 minutes? I am still way within my allowed messages (2500000 of 3000000) and well below the daily messages.
Could someone please let me know what the problem might be?
Please help.
Thanks.

採用された回答

Vinod
Vinod 2020 年 10 月 8 日
I suspect something on the device side or the connectivity on the device. Here's how you can confirm:
1) Using your web browser, sign in to ThingSpeak and create a new ThingSpeak channel
2) Use the web browser to update the channel at a rate of once every 15s (see the API keys tab on the new channel for how to do that).
You will see your channel update succeed every 15s.
Once you confirm that, you can use cURL or POSTMAN to make the request and confirm that it works even outside your browser and you can focus on troubleshooting at your device.

その他の回答 (1 件)

M du Toit
M du Toit 2020 年 10 月 9 日
Thanks for the help! I really appreciate it. I tested with Postman and it worked. I retested with my device and it gave problems. I changed my DNS server IP address, and now it is working every time.
Thanks again for the help.
Regards
Jurie

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeRead Data from Channel についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by