Open josecgon opened 3 years ago
I am not sure if you're talking about the MQTT service provided by AWS IoT Core (or something similar). If that is the case, they don't support QoS 2, and maybe they are disconnecting your client as a result.
Could you try publishing with QoS 0 or 1?
Hi!
I'm trying to connect to an AWS endpoing using TLS and your library.
I have tried with this command:
mosquitto_pub --cafile root-CA.crt --cert cert.pem --key private.key -d -h amazonendpoint -t test -m "Hello Im a mosquitto"
And it works with no problem, it gets connected, it publishes the message and I can see the message in the AWS broker.
After doing that, I started writting a C++ class using the mosquitto library to do the same thing:
It seems like it gets connected but keeps on trying to reconect (I don't knwo why), and I cant see the published messages in the AWS broker.
I attach the logs output:
I also tried this same piece of code with a localhost broker, and it works with no problem (I have another C++ code to subscribe to a topic, and I see the sent message there).
Am I missing some configuration?
Thank you very much!