← Back to team overview

mqtt-users team mailing list archive

Duration of mqttc.loop() (python library)

 

Hello,
I'm testing performance and behaviour of the Python API. I'm starting from examples like the one found under "Scrape serial port data, publish on topic" here:

http://mqtt.org/wiki/doku.php/python_examples

I'm a bit confused by observing that the call to mqttc.loop() takes exactly 1sec to execute, is there any reason for this? What if I need to react more often in a loop?

Thanks a lot S.

--
  Stefano Costa, R&D Manager
  M +39 335 6565749
  Skype stefanocosta.bluewind
  http://www.bluewind.it/stefanoco?code=18



Follow ups