Thingspeak mqtt publish

How to configure Meshlium or use the Manager System
Post Reply
Posts: 11
Joined: Mon Mar 26, 2018 3:26 pm
Company: Bricom Corp

Thingspeak mqtt publish

Post by nigb23 » Wed May 16, 2018 2:37 am

Hi there,
I have one P&S with O2, temperature and humidity sensor, and a meshlium.

I want to publish the sensor values to Thingspeak, and it works good for only one sensor (field1) with this configuration:!AmUgj4xU7pUug-Bw1WEbvSDzfiCOWg

Now I'm trying to send two sensor values (temperature and O2), one for each field (field1 and field2) using this guide: ... lfeed.html
It's say that for two or more fields, use the sintax
. But instead of use specific number values, how I can assing for field 1 the temperature sensor, and the O2 sensor for field 2?

I tried using this sintax, and next the results:
---results: Temperature and O2 values in both graph
---results: In graph 1 show temperature and O2 values as "TC", and in graph 2 shows temperature and O2 values as "O2".

I hope be clear in my question.

Thanks in advance for your answer

Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Thingspeak mqtt publish

Post by libelium-dev » Wed May 16, 2018 9:53 am


It isn't possible send two sensors per message. You can send two messages using the following template

Code: Select all

      "sensor": "#SENSOR#",
      "value": "#VALUE#",

Posts: 8
Joined: Wed Nov 28, 2018 2:57 pm
Company: MathWorks, Inc

Re: Thingspeak mqtt publish

Post by JTW » Tue Mar 19, 2019 6:03 pm

I realize this is an old thread, but there is a ThingSpeak Cloud Connector in the Meshlium now. Details are available in the Meshlium user manual and here.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest