Thingspeak bulk update csv problem

조회 수: 2 (최근 30일)
Alberto Maccioni
Alberto Maccioni 2019년 5월 6일
댓글: Alberto Maccioni 2019년 5월 8일
I'm not able to perform the bulk update using either an embedded system (ESP8266) or sending a POST request via web based service (https://reqbin.com).
I always get a 400 response with "The request cannot be fulfilled due to bad syntax."
No problem using the standard write data interface (but of course it's limited to one message).
The POST request content is (I have my key instead of XX):
write_api_key=XXXXXXXXXXXXXXXX&timeFormat=relative&updates=4,1.1,2,0.3,6,7.7,0.8,0,0,41.2,9,1,ok
I did a lot of trials changing the number of parameters and the time format, but always with the same result.
Is anyone able to perform any kind of bulk update?

채택된 답변

Hans Scharler
Hans Scharler 2019년 5월 6일
What URL are you sending the POST request? For this format, you need this URL: https://api.thingspeak.com/channels/XXXYYY/bulk_update.csv
Replace XXXYYY with your channel ID.
  댓글 수: 3
Hans Scharler
Hans Scharler 2019년 5월 8일
I see the issue. You need to change timeFormat to time_format.
I will have the doc team make sure the example is written consistently.
Alberto Maccioni
Alberto Maccioni 2019년 5월 8일
Thanks a lot, it works now.

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

추가 답변 (0개)

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by