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.

MqttClientFactory.cs 291 B

7 年之前
7 年之前
7 年之前
7 年之前
7 年之前
12345678910111213
  1. using MQTTnet.Core.Client;
  2. using MQTTnet.Implementations;
  3. namespace MQTTnet
  4. {
  5. public class MqttClientFactory : IMqttClientFactory
  6. {
  7. public IMqttClient CreateMqttClient()
  8. {
  9. return new MqttClient(new MqttCommunicationAdapterFactory());
  10. }
  11. }
  12. }