reauthenticate method

Future<MqttAuthenticateMessage> reauthenticate(
  1. MqttAuthenticateMessage msg, {
  2. int waitTimeInSeconds = MqttConstants.defaultReauthenticateTimeout,
})

Re-authenticate.

Sends the supplied authentication message and waits for the a response from the broker. Use this if you wish to re-authenticate without listening for authenticate messages. This method will wait a default 30 seconds unless another timeout value is specified.

If the re-authenticate times out an authenticate message is returned with the timeout indicator set.

Implementation

Future<MqttAuthenticateMessage> reauthenticate(
  MqttAuthenticateMessage msg, {
  int waitTimeInSeconds = MqttConstants.defaultReauthenticateTimeout,
}) {
  return authenticationManager!.reauthenticate(
    msg,
    waitTimeInSeconds: waitTimeInSeconds,
  );
}