You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IMqttCommunicationAdapter.cs 595 B

пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
пре 7 година
12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Core.Client;
  5. using MQTTnet.Core.Packets;
  6. using MQTTnet.Core.Serializer;
  7. namespace MQTTnet.Core.Adapter
  8. {
  9. public interface IMqttCommunicationAdapter
  10. {
  11. IMqttPacketSerializer PacketSerializer { get; }
  12. Task ConnectAsync(TimeSpan timeout, MqttClientOptions options);
  13. Task DisconnectAsync(TimeSpan timeout);
  14. Task SendPacketsAsync(TimeSpan timeout, IEnumerable<MqttBasePacket> packets);
  15. Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout);
  16. }
  17. }