This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Compoment
/
MQTTnet
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add overload for setting message payload.
release/3.x.x
Christian Kratky
5 years ago
parent
0257e31910
commit
ffe9c57ae8
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
Source/MQTTnet/MqttApplicationMessageBuilder.cs
+ 6
- 0
Source/MQTTnet/MqttApplicationMessageBuilder.cs
View File
@@ -29,6 +29,12 @@ namespace MQTTnet
return this;
}
public MqttApplicationMessageBuilder WithPayload(byte[] payload)
{
_payload = payload;
return this;
}
public MqttApplicationMessageBuilder WithPayload(IEnumerable<byte> payload)
{
if (payload == null)
Write
Preview
Loading…
Cancel
Save