using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Core.Client; using MQTTnet.Core.Packets; using MQTTnet.Core.Serializer; namespace MQTTnet.Core.Adapter { public interface IMqttCommunicationAdapter { Task ConnectAsync(MqttClientOptions options, TimeSpan timeout); Task DisconnectAsync(); Task SendPacketsAsync(TimeSpan timeout, IEnumerable packets); Task ReceivePacketAsync(TimeSpan timeout); IMqttPacketSerializer PacketSerializer { get; } } }