Okay, I think I answered my question. Using this code example built for the Photon, I twisted it into minimal code for the ESP8266 just to demonstrate a bulk load of 6 data elements. Hard for me to belive, it works. From here I can build out the code necessary to build a larger string of 60 data elements. I hope that this can help others so am attaching the resulting code for others. Maybe I get an upvote to my current reputation of zero. The code is attached in the next post..
How to efficiently transfer bulk upload from an ESP8266 to ThingSpeak?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Craig Larson
el 2 de Ag. de 2021
Comentada: Craig Larson
el 9 de Ag. de 2021
This link showed me how to successfully do a JSON bulk upload from an ESP8266 to ThingSpeak. I would like to post 60 values in one bulk upload to save on batteries. I know that it is possible to do a CSV bulk upload of data that does not include the "delta_t" or "field1" ascii text for every datapoint as with JSON. This repeated JSON text really bloats the data transfer (about 2000 characters for 60 values). I did successfully complete the Postman example provided in this link but I am unable to mimic this action in the code on my ESP8266. Does anybody know where example code exists - I've been looking for days? Sorry so cryptic but I'm trying to keep my query trim.
0 comentarios
Respuesta aceptada
Más respuestas (1)
Craig Larson
el 6 de Ag. de 2021
Editada: Craig Larson
el 7 de Ag. de 2021
2 comentarios
Christopher Stapels
el 9 de Ag. de 2021
Thanks for taking the time to share. It is a difficult endpoint, but there is a lot of data to get into the right place. I think your work well help other users.
Comunidades de usuarios
Más respuestas en ThingSpeak Community
Ver también
Categorías
Más información sobre Read Data from Channel en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!