mqtt_reconnect()

Description:

Instructs the library to reconnect to the MQTT server (broker) using connection parameters previously supplied with mqtt_connect().

Syntax:

function mqtt_reconnect() as ok_ng

Returns:

OK (success) or NG (failure)

See Also:

Step-by-step Usage Instructions

Details

Calling this function instructs the library to start reconnecting to the server. Callback_mqtt_connect_ok is called when the successful connection is made.