ns in the <a class="el" href="group__api.html">API</a> are thread-safe so it is perfectly reasonable to have a thread dedicated to calling this function every 200 ms or so. MQTT-C can be used in single threaded application though by simply calling this functino periodically inside your main thread. See <a class="el" href="simple_publisher_8c-example.html">simple_publisher.c</a> and <a class="el" href="simple_subscriber_8c-example.html">simple_subscriber.c</a> for examples (specifically the <code>client_refr