hbmqtt
hbmqtt copied to clipboard
hbmqtt.broker.BrokerException: Listener config not found invalid: 'listeners'
Hi
Trying to run the broker as described in http://hbmqtt.readthedocs.io/en/latest/references/broker.html but always getting the error "hbmqtt.broker.BrokerException: Listener config not found invalid: 'listeners'"
Using Python 3.6 Anaconda on an lubuntu 14.4.
Any help appreciated. :)
Hi,
may you forgot the configuration settings for the broker ?? See the code example in the sample folder
https://github.com/beerfactory/hbmqtt/blob/master/samples/broker_start.py
The broker needs a config with ip,port,protocol, etc ...
config example:
config = { 'listeners': { 'default': { 'type': 'tcp', 'bind': '192.168.10.117:1884', 'max_connections': 10, } }, 'sys_interval': 10, } broker = Broker(config)
hope this will help you ; )
Thanks for this example, however the docs should be updated with it : http://hbmqtt.readthedocs.io/en/latest/references/broker.html
Let me know if there's a place for me to file a push request for it