0

Publishing to multiple feeds at same time
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.

Publishing to multiple feeds at same time

by blakefl on Fri Mar 26, 2021 1:03 pm

I am using PubSubClient to publish to two different feeds with an ESP32 for temperature and battery voltage. No matter what order I publish in, the second publish will not always show up in Adafruit IO. In testing I was sending the two messages every minute but had the same issue when sending two messages every hour. I have also tried adding a delay of 500, 1000 and 2000 in between the publish calls and get the same behavior. This is a battery project so I am trying to limit the amount of time awake with wifi turned on.

Is there a limitation of how fast I am sending messages to feeds through MQTT even if I'm not hitting the threshold per minute?

blakefl
 
Posts: 6
Joined: Wed Dec 09, 2020 9:48 am

Re: Publishing to multiple feeds at same time

by blakefl on Fri Mar 26, 2021 6:18 pm

After reviewing the documentation, it looks like I need to use the group topic to publish to my two feeds in a single call. This should resolve my issue.

blakefl
 
Posts: 6
Joined: Wed Dec 09, 2020 9:48 am

Please be positive and constructive with your questions and comments.