re some state information. Internally, MQTT-C calls the reconnect callback like so:</p>
<div class="fragment"><div class="line">client-&gt;reconnect_callback(client, &amp;client-&gt;reconnect_state)</div></div><!-- fragment --><p>Note that the <code>reconnect_callback</code> is also called to setup the initial session. After calling <a class="el" href="group__api.html#ga4becaa66425469cf462b531aa7eb1ac9">mqtt_init_reconnect</a> the client will be in the error state <code>MQTT_ERROR_INITIAL_RECONNECT</code>.<