Skip to content

AWS_ERROR_MQTT_UNEXPECTED_HANGUP every 2 seconds #531

Answered by jmklix
abhiram43 asked this question in Q&A
Discussion options

You must be logged in to vote

Please check out our FAQ:

I keep getting AWS_ERROR_MQTT_UNEXPECTED_HANGUP

This could be many different things but it most likely is a policy issue. Start with using a super permissive IAM policy called AWSIOTFullAccess which looks like this:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "iot:*"
            ],
            "Resource": "*"
        }
    ]
}

After getting it working make sure to only allow the actions and resources that you need. More info about IoT IAM policies can be found here.

If that doesn't work you can enable CloudWatch logging for IoT which will provide you with additional informati…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jmklix
Comment options

Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants