Only field1 is updating

조회 수: 8 (최근 30일)
Wouter Mets
Wouter Mets 2021년 4월 28일
댓글: Wouter Mets 2021년 4월 30일
Hi There,
I am quite new to ThingSpeak and I am trying to get some data into fields using http messages. It seems to work fine on field 1 of my channel, but the other fields won't updat (anymore). Any suggestions why this could happen and how I can check whether my messages have been sent/received?
  댓글 수: 3
Christopher Stapels
Christopher Stapels 2021년 4월 28일
If there is a 200, the data should be accpeted.
Have a look at the recent data to see what is being written to the channel.
Use the read data API see the last few entries.
Use a format like this
Can you show the part of your code where you write to multiple fields?
Do you use this format?:
Wouter Mets
Wouter Mets 2021년 4월 30일
Hi Christopher,
Thanks for your reply!
https://api.thingspeak.com/update?api_key=WRITE_API_KEY&field1=0&field2=43, this will defenitely help me to improve my code. I was sending each field individually, so within 15 sec interval (thanks Vinod!).
I noticed that when I send th field-update individually with a larger interval, it works! With your reply I can now update all fields in one update!
Kind regards,
Wouter Mets

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

채택된 답변

Vinod
Vinod 2021년 4월 28일
What is likely happening is that the fields are being updated inidvidually, and faster than once per 15s. What you really want to do is update all feeds on the channel at the same time. Definitely use the ThingSpeak library and take a look at this example as a reference.
  댓글 수: 1
Wouter Mets
Wouter Mets 2021년 4월 30일
Thank you Vinod for your advise! Definitely helped!
Kind regards,
Wouter Mets

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

추가 답변 (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