Skip to content

How to send MQTT server's username and password #91

Open
@mforbiz

Description

@mforbiz

Hi.
Using the library, is it possible to connect to an MQTT server (Mosquitto) thas requires authentication based on username and password?
Actually I'm using mqttClient.connect(broker, port), but I don't know how to provide MQTT server's username and password.
Any idea?

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