withKeepalive method
set ConnectPacket ping keepaliveSecond
Implementation
MqttClient withKeepalive(int seconds) {
keepAlive = Duration(seconds: seconds);
_connectPacket.withKeepalive(seconds);
return this;
}
set ConnectPacket ping keepaliveSecond
MqttClient withKeepalive(int seconds) {
keepAlive = Duration(seconds: seconds);
_connectPacket.withKeepalive(seconds);
return this;
}