Open spartakos87 opened 1 month ago
I also try to use the defaultContext
final context = SecurityContext.defaultContext;
client!.secure = false;
client!.securityContext = context;
And the result was,
I/flutter (16544): 1-2024-07-23 07:31:10.430226 -- SynchronousMqttServerConnectionHandler::internalConnect failed, attempt 3
I/flutter (16544): 1-2024-07-23 07:31:10.430684 -- SynchronousMqttServerConnectionHandler::internalConnect failed
I/flutter (16544): MQTT::NoConnectionException - mqtt-client::NoConnectionException: The maximum allowed connection attempts ({3}) were exceeded. The broker is not responding to the connection request message (Missing Connection Acknowledgement?
I/flutter (16544): 1-2024-07-23 07:31:10.438501 -- MqttConnectionHandlerBase::disconnect - entered
I/flutter (16544): 1-2024-07-23 07:31:10.439620 -- MqttConnectionHandlerBase::_performConnectionDisconnect entered
I/flutter (16544): MQTT::Disconnected
If you are using secure sockets the 'secure' flag needs to be set to true, as per the API docs, you are setting it to false -
client!.secure = false;
This won't work, set it to true.
Hello, I am trying to subscribe to a specific topic in MQTT broker which use TLS with no validation. But I failed because of certification failed to validation my flutter code
On the other hand, I have already achieve to connect to this broker with this Python script
Any idea how to solve this problem? Thanks