withWillRetain method

MqttConnectMessage withWillRetain()

Sets the WillRetain flag of the Connection Flags

Implementation

MqttConnectMessage withWillRetain() {
  variableHeader!.connectFlags.willRetain = true;
  return this;
}