Skip to content

MqttAndroidClient.connect() , Neither the successful nor the failed callbacks were executed #529

@Terry999555

Description

@Terry999555

mqttAndroidClient?.connect(mqttConnectOptions, null, object : IMqttActionListener {
override fun onSuccess(asyncActionToken: IMqttToken?) {

                }

                override fun onFailure(asyncActionToken: IMqttToken?, exception: Throwable?) {
                    
                }
            })

Usage scenario: 

1: Connect to a new mqtt connection and disconnect when not needed.
2: a new connection is generated in a few seconds.
causes success and failure callbacks not to be executed during connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions