How to use Meshlium gateway via mqtt | Other | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
How to use Meshlium gateway via mqtt
No permission to create posts
April 13, 2018
9:23 am
Avatar
nigb2389
New Member
Members
Forum Posts: 2
Member Since:
April 13, 2018
sp_UserOfflineSmall Offline

Hi there,

I want to try thingspeak platform with our Meshlium gateway using MQTT. 

This is the windows to configure mqtt in the gateway. I'll appreciat your support for made this connection.

MQTT Configurator

Thanks in advance,

NG

April 17, 2018
8:45 am
Avatar
JasonW

MathWorks
Members
Forum Posts: 28
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

We are working on a custom connector for Meshlium.  We've been experimenting with the MQTT.org connector, but haven't had any luck. The way the message template is setup isn't a good fit for ThingSpeak channels and fields.  But there is a small chance you can get the MQTT.org connector to work.  Let me know if this works for you.  

IP Address: mqtt.thingspeak.com

Port: 1883

User: your thingspeak username

Password: your MQTT API key from ThingSpeak.com->Account->My Account

Topic template: This will be your channel's publish topic.  It is best to try a single field first.  If that works, you can attempt a more complicated feed publish with json.  Here is as example topic for channel 123 with a write API key of XXXXXXXXXXXXXXXXX.

channels/123/publish/fields/field1/XXXXXXXXXXXXXXXX

Message template: #VALUE#

April 19, 2018
9:23 pm
Avatar
nigb2389
New Member
Members
Forum Posts: 2
Member Since:
April 13, 2018
sp_UserOfflineSmall Offline

Hi Jason,

I tried to fill the fields as you recommended but I do not know if I did it correctly.

I attached the screenshot of my Thingspeak setting and mqtt setting in Meshlium. It's correct?

https://1drv.ms/u/s!AmUgj4xU7pUug989st_a_il7yXnv9g
https://1drv.ms/u/s!AmUgj4xU7pUug99N4vt9AZW6SqN6ag

In Message Template, "Temperature" is the variable name of my sensor

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

frenk0, Jassonchulp, MatGame, Domnesich, saxenadj, concepcionoa3

Administrators: Hans: 387, lee: 457