0

Sending multiple sensor in JSON via MQTT
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Sending multiple sensor in JSON via MQTT

by Jam3sn811 on Mon Mar 25, 2019 6:03 pm

Hi there,

I'm using JSON to send multiple sensor readings in a single publish. I've followed the docs, nesting the object of sensors in "value" but AdafruitIO doesn't seem to make use of the sensors.

Here's the JSON that's published:
Code: Select all | TOGGLE FULL SIZE
{"value":{"moisture":7,"temperature":20.22,"humidity":45.60449}}


In the feed the value is
Code: Select all | TOGGLE FULL SIZE
{"moisture":7,"temperature":20.22,"humidity":45.60449}


Is there any way I can make use of all 3 for some fancy graphs or is this beyond AdafruitIO's capabilities?

Thanks

Jam3sn811
 
Posts: 5
Joined: Wed Jul 06, 2016 1:49 pm

Re: Sending multiple sensor in JSON via MQTT

by brubell on Tue Mar 26, 2019 9:44 am

Jam3sn811 wrote:Is there any way I can make use of all 3 for some fancy graphs or is this beyond AdafruitIO's capabilities?

Nothing currently, graphs support an individual feed value (and not splitting a feed into multiple values).

brubell
 
Posts: 331
Joined: Fri Jul 17, 2015 10:33 pm

Re: Sending multiple sensor in JSON via MQTT

by Jam3sn811 on Tue Mar 26, 2019 12:20 pm

Okay thanks!

Jam3sn811
 
Posts: 5
Joined: Wed Jul 06, 2016 1:49 pm

Please be positive and constructive with your questions and comments.


cron