【问题标题】:enable authentication in mqtt username and password在 mqtt 用户名和密码中启用身份验证
【发布时间】:2015-09-08 07:28:36
【问题描述】:

更改 mqtt 配置文件以使用用户名和密码进行身份验证 conf 文件设置use_identity_as_username true

username:password
password_file

我们需要在配置文件中做哪些更改

【问题讨论】:

  • MQTT 是一种协议,而不是一种实现。您要配置什么服务器?

标签: configuration mqtt


【解决方案1】:

我正在使用Mosquitto MQTT broker,我喜欢这样:

设置allow_anonymous false

password_file file_path

然后尝试使用 conf file:::: 启动代理

从命令提示符:

c:\>mosquitto\mosquitto -c mosquitto.conf

//

【讨论】:

    猜你喜欢
    • 2017-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    相关资源
    最近更新 更多