api.html#gaa5dab8a06f016b09c7a5259274b3b3ce">mqtt_init</a> that allows the client to automatically reconnect to the broker after an error occurs (e.g. socket error or internal buffer overflows). </p>
<p>This is accomplished by calling the <code>reconnect_callback</code> whenever the client enters an error state. The job of the <code>reconnect_callback</code> is to: (1) perform error handling/logging, (2) clean up the old connection (i.e. close client-&gt;socketfd), (3) <a class="el" href="group__api.html#ga