示例#1
0
 public void Subscribe(string topic, string name)
 {
     StaticResources.messageQueue.Enqueue("时间:" + DateTime.Now.ToString() +
                                          "订阅信息,信息ID为:" +
                                          mqtt.Subscribe(topic, StaticResources.NameToQos(name)));
 }