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.
Locked
User avatar
IC3PO
 
Posts: 1
Joined: Mon May 11, 2020 6:25 pm

Sending "Chunks" of data

Post by IC3PO »

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?

Thanks!

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

Re: Sending "Chunks" of data

Post by jwcooper »

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:
https://io.adafruit.com/api/docs/mqtt.html#group-topics

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

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”