yp87 / leaf2mqtt

Pull in data from the Nissan Connect platform for the LEAF and publish over MQTT
GNU General Public License v3.0
42 stars 39 forks source link

MqttClientWrapper: An error occured while connecting to MQTT broker. Retrying in 5 seconds. #69

Open antonhagg opened 9 months ago

antonhagg commented 9 months ago

Trying to connect to Beebotte that I use as a broker, but it seems to be an issue. Has anyone else testet this broker?

"INFO: 2023-11-29 14:40:30.605198: MqttClientWrapper: Creating MQTT client with mqtt.beebotte.com:8883 listening on leaf/test." "INFO: 2023-11-29 14:40:30.607382: MqttClientWrapper: Connecting..." "WARNING: 2023-11-29 14:40:43.403963: MqttClientWrapper: An error occured while connecting to MQTT broker. Retrying in 5 seconds."

antonhagg commented 9 months ago

This is also in the logs. "INFO: 2023-11-29 15:02:25.734287: MqttClientWrapper: mqtt-client::NoConnectionException: The maximum allowed connection attempts ({3}) were exceeded. The broker is not responding to the connection request message (Missing Connection Acknowledgement?"

"FINEST: 2023-11-29 15:02:25.734327: MqttClientWrapper: #0 SynchronousMqttServerConnectionHandler.internalConnect (package:mqtt_client/src/connectionhandling/server/mqtt_client_synchronous_mqtt_server_connection_handler.dart:116)"

antonhagg commented 9 months ago

I have done some testing today and it seems this is related to SSL/TLS that is not supported as far as I can see. Would it be possible to add support for SSL. Se here for an example: https://github.com/shamblett/mqtt_client/blob/master/example/mqtt_server_client_secure.dart