hbmqtt icon indicating copy to clipboard operation
hbmqtt copied to clipboard

hbmqtt.broker.BrokerException: Listener config not found invalid: 'listeners'

Open alvarodecastro74 opened this issue 7 years ago • 2 comments

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. :)

alvarodecastro74 avatar May 08 '17 10:05 alvarodecastro74

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 ; )

xXSubiXx avatar May 17 '17 14:05 xXSubiXx

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

bcopy avatar Jun 02 '18 12:06 bcopy