25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttCommunicationAdapter.cs 530 B

123456789101112131415161718192021
  1. using System;
  2. using System.Threading.Tasks;
  3. using MQTTnet.Core.Client;
  4. using MQTTnet.Core.Packets;
  5. using MQTTnet.Core.Serializer;
  6. namespace MQTTnet.Core.Adapter
  7. {
  8. public interface IMqttCommunicationAdapter
  9. {
  10. Task ConnectAsync(MqttClientOptions options, TimeSpan timeout);
  11. Task DisconnectAsync();
  12. Task SendPacketAsync(MqttBasePacket packet, TimeSpan timeout);
  13. Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout);
  14. IMqttPacketSerializer PacketSerializer { get; }
  15. }
  16. }