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.
Locked
weal
 
Posts: 87
Joined: Sun Sep 29, 2019 12:30 am

Adafruit IO's Json code

Post by weal »

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}" }]
}

User avatar
jwcooper
 
Posts: 1003
Joined: Tue May 01, 2012 9:08 pm

Re: Adafruit IO's Json code

Post by jwcooper »

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}]}

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”