Files
MQTTnet/MQTT.NET.Core/Adapter/IMqttAdapter.cs
T
2017-03-19 18:41:29 +01:00

19 lines
408 B
C#

using System;
using System.Threading.Tasks;
using MQTTnet.Core.Client;
using MQTTnet.Core.Packets;
namespace MQTTnet.Core.Adapter
{
public interface IMqttAdapter
{
Task ConnectAsync(MqttClientOptions options, TimeSpan timeout);
Task DisconnectAsync();
Task SendPacketAsync(MqttBasePacket packet, TimeSpan timeout);
Task<MqttBasePacket> ReceivePacket();
}
}