Closed iagocarmona closed 7 months ago
Can you try running the device-example with your certs to make sure you have the certificates set up and registered correctly? IoT core just disconnects without any error message when you try to connect with invalid credentials. Please include any logs if this still doesn't work for you.
It's recommended to use aws-iot-device-sdk-js-v2 for better functionality. Using MQTT5 with that sdk will give better error messages when you fail to connect.
Thank you very much for your attention! I ran some tests and found an issue. I was using the same clientId
in all environments (production, homolog, and development). I believe that, it kept disconnecting and reconnecting. To fix it, I changed the certificate policy, I'm using to allow clientId from homolog, production, and development. Now it's working correctly. Thank's for attention :)
I'm glad that you were able to get it working. Please let us know if you have any other problems/questions when using this sdk.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
The device connection is getting offline constantly
The connection is getting offline constantly
Expected Behavior
I would like to keep it alive
Current Behavior
Is disconnecting constatly
Reproduction Steps
Connect to a device on aws
Possible Solution
No response
Additional Information/Context
No response
SDK version used
2.2.13
Environment details (OS name and version, etc.)
ubuntu