IIwbMsgClient.cs 573 B

12345678910111213141516171819202122
  1. using System.Threading.Tasks;
  2. using Abp.Dependency;
  3. using MQTTnet.Client.Receiving;
  4. namespace IwbZero.MqttClient
  5. {
  6. public interface IIwbMsgClient : ISingletonDependency
  7. {
  8. bool NotValidate { get; }
  9. void SetOptions(string serverIp, int serverPort, string clientId, string serverUserId, string serverPassword,
  10. IMqttApplicationMessageReceivedHandler receivedHandler);
  11. Task SubscribeTopic(string topic);
  12. Task SendMsg(string topic, string msg);
  13. Task SendMsg(string topic, string msg, string clientId);
  14. }
  15. }