diff --git a/Source/MQTTnet/MqttApplicationMessageBuilder.cs b/Source/MQTTnet/MqttApplicationMessageBuilder.cs index 7d11689..c265e4d 100644 --- a/Source/MQTTnet/MqttApplicationMessageBuilder.cs +++ b/Source/MQTTnet/MqttApplicationMessageBuilder.cs @@ -29,6 +29,12 @@ namespace MQTTnet return this; } + public MqttApplicationMessageBuilder WithPayload(byte[] payload) + { + _payload = payload; + return this; + } + public MqttApplicationMessageBuilder WithPayload(IEnumerable payload) { if (payload == null)