Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect to iot #2

Closed
dillipdala opened this issue Sep 19, 2018 · 3 comments
Closed

unable to connect to iot #2

dillipdala opened this issue Sep 19, 2018 · 3 comments

Comments

@dillipdala
Copy link

An unhandled exception of type 'uPLibrary.Networking.M2Mqtt.Exceptions.MqttCommunicationException' occurred in M2Mqtt.Net.dll

the above issue is getting when client is connecting..
IotClient.Connect(ClientID);

please help..

@cristamd
Copy link

cristamd commented Dec 7, 2018

Note sure if this is relevant now, but I got that exception when connecting to AWS IoT if I forgot to activate my certificate for the Thing, and if I forgot to attach a security policy to the certificate. Hope that helps if you are still having problems.

@sundarnarasiman
Copy link
Contributor

Does the x509 certificates have required IAM policies to connect, subscribe and publish to the IOT MQTT Topics ?

@sundarnarasiman
Copy link
Contributor

An unhandled exception of type 'uPLibrary.Networking.M2Mqtt.Exceptions.MqttCommunicationException' occurred in M2Mqtt.Net.dll

the above issue is getting when client is connecting..
IotClient.Connect(ClientID);

please help..

You can enable cloud watch logs on Iot Core & see if you get any clue for troubleshooting. Make sure that that firewall is not blocking calls on port 8883 to AWS IoT End Point. Also make sure that the certificates are activated and required IAM policies are applied on the certificate.

sundarnarasiman added a commit that referenced this issue May 9, 2021
sundarnarasiman added a commit that referenced this issue May 15, 2021
sundarnarasiman added a commit that referenced this issue May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants