You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
624 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using MQTTnet.Core.Adapter;
  5. namespace MQTTnet.Core.Server
  6. {
  7. public interface IMqttServer
  8. {
  9. event EventHandler<MqttApplicationMessageReceivedEventArgs> ApplicationMessageReceived;
  10. event EventHandler<MqttClientConnectedEventArgs> ClientConnected;
  11. event EventHandler<MqttClientDisconnectedEventArgs> ClientDisconnected;
  12. IReadOnlyList<ConnectedMqttClient> GetConnectedClients();
  13. void Publish(MqttApplicationMessage applicationMessage);
  14. Task StartAsync();
  15. Task StopAsync();
  16. }
  17. }