Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

IMqttClient.cs 874 B

123456789101112131415161718192021222324
  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(MqttApplicationMessage willApplicationMessage = null);
  14. Task DisconnectAsync();
  15. Task PublishAsync(MqttApplicationMessage applicationMessage);
  16. Task<IList<MqttSubscribeResult>> SubscribeAsync(IList<TopicFilter> topicFilters);
  17. Task<IList<MqttSubscribeResult>> SubscribeAsync(params TopicFilter[] topicFilters);
  18. Task Unsubscribe(IList<string> topicFilters);
  19. Task Unsubscribe(params string[] topicFilters);
  20. }
  21. }