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 

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 !!

Parents
  • Hi Giang,

    I am not familiar with AWS from before unfortunately, but I would start by sniffing the traffic between the raspberry pi and the cloud and check what exactly is send back from the cloud, maybe there is an error code or something?
    Did you find a tutorial for setting up the AWS? Can you share the link to that? You should check if you using the right getaway configuration and make sure you are using the right IP address and ports.

    Did you test the example using Eclipse's paho as default, did that work fine or did you have trouble with that as well?

    Best regards,

    Marjeris

  • Hi ,

    I tested with paho as default, it work fine. But paho not use ssl and certificate. So It simple. Now I want use AWS. It use ssl and certificate.

    The first, I create my thing (broker) on AWS as below link : 

    https://www.youtube.com/watch?v=y6W9QfiEY2E

    Next, I download certificate and test connection with MQTT Fx software. I can pub, sub success.

    Next, I modify paho-mqtt-sn-gateway.conf to AWS as above post and copy certificate to raspi.

    But I don't success for test. Cli node can't connect to MQTT Gateway.

    How I can see debug from rasberry pi ?

    Can you try connect to AWS and show me solution ? Thank !!

Reply
  • Hi ,

    I tested with paho as default, it work fine. But paho not use ssl and certificate. So It simple. Now I want use AWS. It use ssl and certificate.

    The first, I create my thing (broker) on AWS as below link : 

    https://www.youtube.com/watch?v=y6W9QfiEY2E

    Next, I download certificate and test connection with MQTT Fx software. I can pub, sub success.

    Next, I modify paho-mqtt-sn-gateway.conf to AWS as above post and copy certificate to raspi.

    But I don't success for test. Cli node can't connect to MQTT Gateway.

    How I can see debug from rasberry pi ?

    Can you try connect to AWS and show me solution ? Thank !!

Children
No Data