🐍 CircuitPython is the easiest way to program microcontrollers now celebrating over 200 boards!🐍

Sending "Chunks" of data
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.

Sending "Chunks" of data

by IC3PO on Wed Apr 07, 2021 9:22 pm

Hi all,

Feasibility question: Is it possible to take an array of values (e.g. floats) and pass them as a single MQTT request to the Adafruit.io server? For example, could I take readings from the ICM20649 and then pass buffered readings of the accelerometer and gyro values to separate feeds so I do not violate the posting limit but still collect the data?


Posts: 1
Joined: Mon May 11, 2020 6:25 pm

Re: Sending "Chunks" of data

by jwcooper on Thu Apr 08, 2021 5:59 pm

You can send multiple updates in a single publish, but each value in the batch update will still count against the data rate limits.

Here is the documentation on how to group them up:

The benefit is reduced bandwidth and possibly power consumption used, not being able to bypass data limits.

With the API, you can also batch up records all for the same feed:
https://io.adafruit.com/api/docs/#creat ... ta-records

Posts: 774
Joined: Tue May 01, 2012 9:08 pm

Please be positive and constructive with your questions and comments.