bluewind-embedded-systems / aws-nxp-lpc54018-demo

Demo application integrating AWS and NXP components.
3 stars 3 forks source link

Issue with MQTT Commands #3

Open beginner2222 opened 5 years ago

beginner2222 commented 5 years ago

Hi,

I've followed all the steps as mentioned in the respective Read-Me files. I keep receiving the following error with the MQTT Commands from Serial Terminal (Tera Term)- whatsapp image 2018-11-21 at 12 07 26 am

denni1988 commented 5 years ago

Hi, did you go through the AWS guide that you can find at this link? https://github.com/bluewind-embedded-systems/aws-nxp-lpc54018-demo/tree/master/AWS There's the paragraph "Create a thing on AWS IoT" dealing with the certificates settings for your device.

beginner2222 commented 5 years ago

Hi,

I did create a thing as mentioned in that particular Read-Me file. I rechecked this again following the same steps. But, I'm trying to implement this only using one LPC54018 module and I've created only one thing which is the "KitchenThing". Anything else that needs to be checked?

Thank you, Saranya

beginner2222 commented 5 years ago

Hello,

I also tried the aws_shadow_wifi example (OM40007|LPC54018 IoT Microcontroller Module|NXP) by following all the step-by-step instructions. This demo works fine and I see all the MQTT commands in the Serial Terminal (Tera Term). I'm unsure of what's going wrong. Any help would be highly appreciated.

Thank you, Saranya

denni1988 commented 5 years ago

Hi, can you tell me the version of the MCUXpresso SDK that you are using? can you try to download the last from the website https://mcuxpresso.nxp.com/en/welcome?

beginner2222 commented 5 years ago

Hi,

Firstly, I'd like to thank you for trying to help me in this process. Here's the information you asked-

I tried using SDK 2.3.1 version previously.

Now, as you've mentioned in your earlier reply, I tried downloading the latest version of SDK 2.4.2. Now, I have a problem connecting to the WiFi. I tried to use the writewifi command as specified in the Read-me file to input my ssid, password and security, but then it displays few lines in my terminal as shown in the screenshot attached.

image

I've also noticed few differences in this case:

  1. I downloaded the project file (aws-nxp-lpc54018-demo-master) from your GitHub page and imported it on MCUxpresso. My end point in AWS IoT has this structure: xxxxxxxxxxxxx-ats.iot.us-east-1.amazonaws.com., while yours doesn't have "-ats". Does that make any difference?
  2. Where do we use the rootCA that we downloaded along with cert.pem, public and private keys?

Thanks, Saranya

denni1988 commented 5 years ago

Hi, this is a problem about settings the wifi parameters, can you tell me which security you have set? You can make a try removing the security from the access point and setting in the serial no security

Answer from your question: 1- this is just the aws address, it's normal that is different 2- the rootCA is not used, It's used only the certificate and private key that you put in the code