Closed alex-vovk closed 1 year ago
I'm closing this issue as at the time where you reported this issue AWS IoT core did not support MQTT5 and you ran into this issue: https://github.com/hivemq/hivemq-mqtt-client/issues/327
As AWS added MQTT 5 support it should work now
Expected behavior
Connected to the AWS IoT Core and subscribed to the topic.
Actual behavior
Connection fails. The following output is provided:
To Reproduce
Steps
Run from the terminal:
mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug
Reproducer code
Details
Workaround
Add switch to MQTT 3 and set QOS to 0 by adding the following parameters: '--mqttVersion 3 --qos 0' For example:
mqtt-cli.exe subscribe --topic "#" --showTopics --host private-endpoint.us-east-1.amazonaws.com --port 8883 --secure --cert certificate.pem.crt --key private.pem.key --verbose --debug --mqttVersion 3 --qos 0