The response for updating a field can sometimes take up to 12 seconds . Too slow

조회 수: 26 (최근 30일)
I am working on a home control system .i am using the thingSpeak server to control Nodemcu . The problem is that once i send the GET request to update a specific field it can take up to 12 seconds. And this is so slow. My question is , does this happen with other people before or am i doing something wrong.

채택된 답변

Vinod
Vinod 2021년 6월 10일
ThingSpeak has an operational metric to respond to requests to update a channel within a few hundred milleseconds of receiving the request. We monitor this metric daily. However, the connectivity to ThingSpeak servers is outside of our control. So, if you have a slow internet connection, or a general lack of network bandwidth on account of use by other processes, it is possible it takes a while for your request to make its way from you device to the ThingSpeak server.
One suggestion I can make is to try the MQTT API to update your ThingSpeak channel. MQTT is a more efficient protocol for machine-to-machine data. Take a look at the API and examples if you need a starting point.
  댓글 수: 5
Vinod
Vinod 2021년 6월 12일
편집: Vinod 2021년 6월 12일
Unless you've purchased a license, 2 out of 3 of your requests will get a 200 status code with a 0 return value indicating the data was rejected. You're just wasting resources on your device and on ThingSpeak with these requests.
Only one point every 15 seconds will be stored, and you will get a positive number corresponding to the entry id back.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 ThingSpeak에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by