chickadee » mosquitto » mqtt-loop-forever

mqtt-loop-forever client #!optional (timeout 1000)procedure

This function call mqtt-loop for you in an infinite blocking loop. It is useful for the case where you only want to run the MQTT client loop in your program. It handles reconnecting in case server connection is lost. If you call mqtt-disconnect in a callback it will return.

  • timeout: Maximum number of milliseconds to wait for network activity in the select() call before timing out. Set to 0 for instant return.