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

20 lines
674 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace MQTTnet.Client
  5. {
  6. public interface IMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher, IDisposable
  7. {
  8. bool IsConnected { get; }
  9. event EventHandler<MqttClientConnectedEventArgs> Connected;
  10. event EventHandler<MqttClientDisconnectedEventArgs> Disconnected;
  11. Task<MqttClientConnectResult> ConnectAsync(IMqttClientOptions options);
  12. Task DisconnectAsync();
  13. Task<IList<MqttSubscribeResult>> SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
  14. Task UnsubscribeAsync(IEnumerable<string> topics);
  15. }
  16. }