I am using Particle.io which uses it's Webhook to 'Post' the JSON data to the Adafruit.io. So far so good!
Obfuscated example:
POST-- /api/v2/webhooks/feed/jyr2pTKPfeCT******bo9XWV
{
"name": "Fred-01-Celsius",
"data": "{ \"value\": \"20.75\", \"feedID\": \"jyr******PfeCTAx6pui3dqq****"}",
"ttl": 60,
"published_at": "2021-01-26T12:38:04.566Z",
"coreid": "e00fce6834d206c2d9b95805"
}
But I wanted to post multiple data points (for example 30 samples of temperature data) at once rather than 30 Webhooks calls to the server. The documentation if you are not using the Adafruit.io API is very sparse. I have tried many configurations - best I get is several variables in one entry. The Dashboard log shows:
(2021/01/25 6:35PM Fredd-01-Celsius ['25', '26'])
Can anyone help me understand how to form the JSON to post to Adafruit.iuo in batch form?
Also the URL for batch processing is a little unclear - I get a URL error when I append '/data/batch' to the address:
POST /api/v2/webhooks/feed/jyr******PfeCTAx6pui3dqq****/data/batch
Any help would be greatly appreciated. Thanks
philly