I got status as return for the funtion nxd_mqtt_client_connect as NXD_MQTT_CONNECT_FAILURE.
I am using the code for the MQTT_TLS_AP_PK_S5D9.
In reply to Smit Majithia:
In reply to Ian:
I had first used the secure tls mqtt but still failed so i use the simple client connect without TLS see pic
I go on online chat support then Mr. Bartlomiej guided me to sniff the ethernet port by wire shark as by connection as board --> laptop --> internet, i put the laptop wifi as shared wifi so that board can access the wifi so i have attached the code also to investigate my problem i still got the same problem but this time i attach my AWS monitor and sniff too and code also ,
please guide me for the same !
snoop file available over here:
I have also check with the MQTT.fx with the same certificates that i use for the SK_S7G2 Board for the application project and got all the settings write it can connect and subcribed and publish the same i am attaching the screenshots for the same !
published from AWS IoT
So i guess my settings were right ! can you please assist me for the same !
Using the project attached your earlier post I have been able to connect to my AWS Thing.
I need to select the Ethernet network interface using a dynamic (DHCP) IP address.
When I created my Thing I downloaded its private key in PEM format and the certificate for the Thing in PEM format. Do you have these files for your Thing? Without them it will not be possible to connect the client to the Thing as they authenticate the client with AWS.
Assuming you have these files enter the IoT Service Selection Menu and select AWS
Then 1 AWS Cloud Setting Menu and 1 Enter AWS Endpoint information
Then 2 Enter AWS Thing Name. In my case it is "Synergy_S5D9_Wow" but yours will be different.
Then 3 Exit to back to the previous menu.
Select 2 Certificate/Keys Setting Menu.
Then 1 Enter rootCA Certificate
Attached is the root CA cert I used. Open this in a text editor and select ALL the text and copy it to the clipboard. Then paste it into the console and hit enter and then enter again.
Do the same for the Thing Certificate and Thing Private Key using the files downloaded when you created the Thing.
Exit all the way back to the main menu and run the demo using "demo start". The device should get an IP address from your network, use DNS to resolve the AWS endpoint address and then connect and publish/update your Thing. If there are problems anywhere in this process the console will show an error description.
So Ian, Is the code that i attached in previous post you are using for the same or you use some other code ? And you pasted the Root-CA Certificate, so can i use that only ? and if yes what about the thing CErtificate and thing private key ? Please guide me Thanks in advance !!!
Yes i have all the keys like private key and thing certificate and also RootCA certificate(2048 bytes Format) which format should i use for the RootCA download there are 4 options 2048 byte RSA, 4096 RSA and so on. which should i choose ?
Please re-read my last post as all your questions are answered in the text and screen shots.
Use the RootCA that was attached. The Thing's private key and certificate should be downloaded via the menu options as shown in the screen shots. All certificates and key should be in PEM format.
When you were sent the project were you given the guide that explains how to use it? In case you weren't it can be downloaded from the link below.
Thanks for help but i seriously can't able to understand about the wyay you told me to do as i just have your RootCA key and then i use the MQTT.fx then it shows the exception
and so i cant go ahead if MQTT.fx is giving me exception then i can go through the SK-S7G2.
Please explain me how to download the private key and device certificate as you have your own Key and device at your end not with me so how can i access your thing w/o all keys and certification!