Thingspeak bulk update csv problem

4 Ansichten (letzte 30 Tage)
Alberto Maccioni
Alberto Maccioni am 6 Mai 2019
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?

Akzeptierte Antwort

Hans Scharler
Hans Scharler am 6 Mai 2019
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 Kommentare
Hans Scharler
Hans Scharler am 8 Mai 2019
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 am 8 Mai 2019
Thanks a lot, it works now.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu ThingSpeak finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by