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 442 B

преди 7 години
преди 7 години
преди 7 години
преди 7 години
преди 7 години
123456789101112131415161718
  1. using System;
  2. using System.Threading.Tasks;
  3. using MQTTnet.Core.Client;
  4. using MQTTnet.Core.Packets;
  5. namespace MQTTnet.Core.Adapter
  6. {
  7. public interface IMqttCommunicationAdapter
  8. {
  9. Task ConnectAsync(MqttClientOptions options, TimeSpan timeout);
  10. Task DisconnectAsync();
  11. Task SendPacketAsync(MqttBasePacket packet, TimeSpan timeout);
  12. Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout);
  13. }
  14. }