Skip to content

Commit

Permalink
Merge pull request #2437 from cescoffier/mqtt-will-message-bytes
Browse files Browse the repository at this point in the history
Add support for the willMessageBytes method
  • Loading branch information
ozangunalp authored Jan 3, 2024
2 parents 65c427f + cebf931 commit 04f12f9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,18 @@ public MqttClientSessionOptions setWillTopic(String willTopic) {
}

@Override
@Deprecated
public MqttClientSessionOptions setWillMessage(String willMessage) {
super.setWillMessage(willMessage);
return this;
}

@Override
public MqttClientOptions setWillMessageBytes(Buffer willMessage) {
super.setWillMessageBytes(willMessage);
return this;
}

@Override
public MqttClientSessionOptions setCleanSession(boolean cleanSession) {
super.setCleanSession(cleanSession);
Expand Down

0 comments on commit 04f12f9

Please sign in to comment.