ntex-rs / ntex-mqtt

MQTT Client/Server framework for v5 and v3.1.1 protocols
Apache License 2.0
318 stars 68 forks source link

How to connect using a username and password #141

Closed qcjxberin closed 1 year ago

qcjxberin commented 1 year ago

As a server, how to ensure that the client must verify the account and password when connecting

fafhrd91 commented 1 year ago

you can verify Connect packet in handshake service. example

fafhrd91 commented 1 year ago

https://docs.rs/ntex-mqtt/0.10.4/ntex_mqtt/v3/struct.Handshake.html