This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to config MQTT Broker on Thread Border Router to AWS

Hi all,

I am using Thread SDK3.1 and running successfull with MQTT-SN example (Border Router + 1 MQTT public + 1 MQTT subscribe)

Now, I want to change MQTT broker from paho to AWS.

I modified paho-mqtt-sn-gateway.conf to 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#**************************************************************************
# 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
# http://www.eclipse.org/legal/epl-v10.html
# and the Eclipse Distribution License is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#***************************************************************************
# config file of MQTT-SN Gateway
# IPv4 Address of iot.eclipse.org
BrokerName=52.26.126.221
BrokerPortNo=1883
BrokerSecurePortNo=8883
ClientAuthentication=YES
#ClientsList=/path/to/your_clients.conf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But 2 Node send "CONNECT" message fail to MQTT-Gateway (Border Router).

52.26.126.221 obtained by switching from my thing : xxxxxxxxxxxxxxxx-ats.iot.us-west-2.amazonaws.com

So, please show me a solution.

Thank very much !!