Skip to content

Commit db1707e

Browse files
committed
Correct local MQTT broker max connections param
Snake case aMQTT broker max conections parameter to match v0.11.3. Ref - https://amqtt.readthedocs.io/en/v0.11.3/references/broker_config/
1 parent 416e051 commit db1707e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

localhost-mqtt-broker/localhost_mqtt_broker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"default": {
3737
"type": "tcp",
3838
"bind": f"{args.host}:1883",
39-
"max-connections": 1000,
39+
"max_connections": 1000,
4040
},
4141
"tls": {
4242
"type": "tcp",
4343
"bind": f"{args.host}:8883",
44-
"max-connections": 1000,
44+
"max_connections": 1000,
4545
"ssl": "on",
4646
"cafile": args.root_ca_cert_path,
4747
"certfile": args.server_cert_path,
@@ -50,13 +50,13 @@
5050
},
5151
"sys_interval": 10,
5252
"auth": {
53-
"allow-anonymous": True,
54-
"password-file": os.path.join(
53+
"allow_anonymous": True,
54+
"password_file": os.path.join(
5555
os.path.dirname(os.path.realpath(__file__)), "passwd"
5656
),
5757
"plugins": ["auth_anonymous"],
5858
},
59-
"topic-check": {
59+
"topic_check": {
6060
"enabled": True,
6161
"plugins": []
6262
},

0 commit comments

Comments
 (0)