onFailedConnectionAttempt property
Failed Connection attempt callback.
Called on every failed connection attempt, if maxConnectionAttempts
is
set to 5 say this will be called 5 times if the connection fails,
one for every failed attempt. Note this is never called
if autoReconnect is set.
If autoReconnect is set, the MqttNoConnectionException
is not raised if this callback is supplied.
Implementation
FailedConnectionAttemptCallback? onFailedConnectionAttempt;