keepAliveFor method

  1. @Deprecated('This will be removed, you must now set this through the client keepAlivePeriod')
MqttConnectMessage keepAliveFor(
  1. int keepAliveSeconds
)

Sets the keep alive period

Implementation

@Deprecated(
    'This will be removed, you must now set this through the client keepAlivePeriod')
MqttConnectMessage keepAliveFor(int keepAliveSeconds) {
  variableHeader!.keepAlive = keepAliveSeconds;
  return this;
}