mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
24 lines
746 B
C#
24 lines
746 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using MQTTnet.Client;
|
|
using MQTTnet.Diagnostics;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.LowLevelClient
|
|
{
|
|
public interface ILowLevelMqttClient : IDisposable
|
|
{
|
|
event Func<InspectMqttPacketEventArgs, Task> InspectPackage;
|
|
|
|
bool IsConnected { get; }
|
|
|
|
Task ConnectAsync(MqttClientOptions options, CancellationToken cancellationToken = default);
|
|
|
|
Task DisconnectAsync(CancellationToken cancellationToken = default);
|
|
|
|
Task<MqttPacket> ReceiveAsync(CancellationToken cancellationToken = default);
|
|
|
|
Task SendAsync(MqttPacket packet, CancellationToken cancellationToken = default);
|
|
}
|
|
} |