Double checking a bulk upload csv url

11 visualizaciones (últimos 30 días)
Saul
Saul el 13 de Oct. de 2023
Comentada: Saul el 13 de Oct. de 2023
Hello, I am currently trying to get some data uploaded to ThingSpeak via an ESP32 with an SD card attached, using the bulk update csv API.
I have tried to get it correct to the example on this page https://uk.mathworks.com/help/thingspeak/bulkwritecsvdata.html
My url currently looks like this:
http://api.thingspeak.com/channels/2288289/bulk_update.csv?write_api_key=7DN763HM8PFKF4R0&time_format=absolute&updates=2000-00-00T00%3A0%3A0+0000%2C0%2C0%2C0%2C001
%2C%2C%2C%2C%2C0.000000%2C0.000000%2C%2C
(In this example all the values are zero because I am currently just testing but even with fake data it is not working)
The error is due to bad syntax
Please can someone help? Thanks in advance
  5 comentarios
Christopher Stapels
Christopher Stapels el 13 de Oct. de 2023
Have a look at this example to see a better way to generate a POST and do bulk updates on an ESP32.
I'm not sure what you mean about "using four data fields because the timestamp is separate in this case"
You can definitely post to all eight fields in a bulk update, have a look at the examples on the documentation page.
The ThingSpeak library parts in your code really threw me until I noticed they were all commented out. I suggest you clean up the code you post in a question to get best results if you get a chance. (remove sections you arent using)
Regarding the lat/lon question are you trying to understand how to read the lat lon data back from ThingSpeak? If so see the Read Data api, and condired the parameter 'location=true'
Saul
Saul el 13 de Oct. de 2023
Thank you Christopher! I will look at this when I get a chance next week. Have a lovely weekend

Iniciar sesión para comentar.

Respuestas (0)

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Visualize Data en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by