Closed rutberg closed 5 years ago
:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.
@rutberg Please share your current configuration for this addon.
{
"log_level": "debug",
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"web": {
"enabled": true,
"ssl": true
},
"broker": {
"enabled": true,
"enable_ws": true,
"enable_mqtt": true,
"enable_ws_ssl": true,
"enable_mqtt_ssl": true,
"allow_anonymous": true
},
"mqttusers": [
{
"username": "CantBeBlank",
"password": "CantBeBlank",
"readonly": false,
"topics": [
"#"
]
}
]
}
If users are defined mosquitto will not allow anonymous access.
if you want to use allow_anonymous
, you can't define any mqttusers
This can be done by setting that to this:
"mqttusers": []
Thank you @ludeeus - that solved it.
In the beginning, I tried to test it by removing that omitting mqttusers
I.e.
{
"log_level": "debug",
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"web": {
"enabled": true,
"ssl": true
},
"broker": {
"enabled": true,
"enable_ws": true,
"enable_mqtt": true,
"enable_ws_ssl": true,
"enable_mqtt_ssl": true,
"allow_anonymous": true
}
}
But that didn't work, and leaving the fields blank didn't work either. Thanks for the help with showing the third option 👍
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Problem/Motivation
Expected behavior
Actual behavior
Steps to reproduce
Proposed changes