Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

24 rader
732 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Core.Packets;
  5. namespace MQTTnet.Core.Client
  6. {
  7. public interface IMqttClient
  8. {
  9. bool IsConnected { get; }
  10. event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
  11. event EventHandler Connected;
  12. event EventHandler Disconnected;
  13. Task ConnectAsync(MqttClientOptions options);
  14. Task DisconnectAsync();
  15. Task<IList<MqttSubscribeResult>> SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
  16. Task UnsubscribeAsync(IEnumerable<string> topicFilters);
  17. Task PublishAsync(IEnumerable<MqttApplicationMessage> applicationMessages);
  18. }
  19. }