Folder fix

This commit is contained in:
1iveowl
2017-07-14 08:26:25 +02:00
parent 1fb0944e2b
commit 3722bc9ae6
5 changed files with 296 additions and 0 deletions
@@ -0,0 +1,18 @@
using System;
using MQTTnet.Core.Adapter;
using MQTTnet.Core.Client;
using MQTTnet.Core.Serializer;
using MQTTnet.Implementations;
namespace MQTTnet
{
public class MqttClientFactory
{
public MqttClient CreateMqttClient(MqttClientOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
return new MqttClient(options, new MqttChannelCommunicationAdapter(new MqttTcpChannel(), new DefaultMqttV311PacketSerializer()));
}
}
}