0

Adafruit IO's Json code
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Adafruit IO's Json code

by weal on Mon Feb 22, 2021 2:36 pm

Is this an accurate Adafruit IO's Json code to receive multiple data? or I have to send each data separately ?.

{ "datum":
{
"value": [{ "{customData#str}", "{customData#temperature}", "{customData#humidity}" }]
}

weal
 
Posts: 66
Joined: Sun Sep 29, 2019 12:30 am

Re: Adafruit IO's Json code

by jwcooper on Wed Feb 24, 2021 12:33 pm

You can use the batch endpoint:
https://io.adafruit.com/api/docs/?shell ... ta-records

You'd want to format it like:

{data: [{value: 123}, {value: 123}]}

jwcooper
 
Posts: 781
Joined: Tue May 01, 2012 9:08 pm

Please be positive and constructive with your questions and comments.