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.
|
- using System;
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using MQTTnet.Core.Packets;
-
- namespace MQTTnet.Core.Client
- {
- public interface IMqttClient
- {
- bool IsConnected { get; }
-
- event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
- event EventHandler Connected;
- event EventHandler Disconnected;
-
- Task ConnectAsync(MqttClientOptions options);
- Task DisconnectAsync();
-
- Task<IList<MqttSubscribeResult>> SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
- Task UnsubscribeAsync(IEnumerable<string> topicFilters);
-
- Task PublishAsync(IEnumerable<MqttApplicationMessage> applicationMessages);
- }
- }
|