Hi,
Is their any method to listen the MQTT-SN topics inside Rpi? I would like to listen the MQTT-SN messages and send it to my own cloud. Is it possible? I have tested CoAP it is awesome. But, I need mqtt.
Thanks,
Naveen
Hi,
Is their any method to listen the MQTT-SN topics inside Rpi? I would like to listen the MQTT-SN messages and send it to my own cloud. Is it possible? I have tested CoAP it is awesome. But, I need mqtt.
Thanks,
Naveen
Hi Naveen,
The border router image has a MQTT-SN gateway enabled by default. You can change the config to forward the messages to your own cloud MQTT broker.
Best regards,
Jørgen
Hi Naveen,
The border router image has a MQTT-SN gateway enabled by default. You can change the config to forward the messages to your own cloud MQTT broker.
Best regards,
Jørgen
Hi Jorgen,
Please find my config file below. I have added Brokername and Certificate folder path. Still not working. Am I missing anything?
#**************************************************************************
# Copyright (c) 2016, Tomoaki Yamaguchi
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# and Eclipse Distribution License v1.0 which accompany this distribution.
#
# The Eclipse Public License is available at
# www.eclipse.org/.../epl-v10.html
# and the Eclipse Distribution License is available at
# www.eclipse.org/.../edl-v10.php.
#***************************************************************************
# config file of MQTT-SN Gateway
# IPv4 Address of iot.eclipse.org
BrokerName=***************.iot.us-east-1.amazonaws.com
#BrokerName=137.135.83.217
BrokerPortNo=1883
BrokerSecurePortNo=8883
ClientAuthentication=YES
#ClientsList=/path/to/your_clients.conf
RootCAfile=/home/pi/cert/root-CA.crt
RootCApath=/home/pi/cert/
CertsFile=/home/pi/cert/Gateway.cert.pem
PrivateKey=/home/pi/cert/Gateway.private.key
GatewayID=1
GatewayName=PahoGateway-01
KeepAlive=900
#LoginID=hivewebid
#Password=hivewebid
# UDP
GatewayPortNo=10000
MulticastIP=225.1.1.1
MulticastPortNo=1883
# GatewayUDP6Broadcast address is set to all Thread devices address
# in order to enable Thread Sleepy Devices to receive multicast messages
# sent from the gateway.
# UDP6
GatewayUDP6Port = 47193
GatewayUDP6Broadcast = ff03::1
#GatewayUDP6Broadcast = ff33:40:fdde:ad00:beef:0:0:1
GatewayUDP6If = wpan0
# XBee
Baudrate=38400
SerialDevice=/dev/ttyUSB0
ApiMode=2
# LOG
ShearedMemory=YES;
Where I can find MQTT-SN logs?
-Naveen
As you can see in the note in the documentation that I linked, you need to enter the IPv4 address of the broker. The hostname is not supported.
Not that this gateway is not developed by Nordic, you can find some details about logging in the readme in the GitHub repo.