[Mosquitto-users] python daemon - on_message callback not fired

2013-02-04 Thread Alexander Bolotnov
Hi, I'm trying to write a little mosquitto python daemon that will run in background and fire actions on messages. Code quoted below. My problem is that on_message will not get hit. I've tried referencing both the Class method and unbound method outside of Client class - no luck. Self-tests messag

Re: [Mosquitto-users] python daemon - on_message callback not fired

2013-02-04 Thread Roger Light
Dear Alexander, > My problem is that on_message will not get hit. You aren't calling the network processing loop anywhere so only outgoing communication will happen. You should use loop() periodically, loop_start() once to run the network loop in a thread in the background, or loop_forever() to c