示例#1
0
 private void buttonSub_Click(object sender, RoutedEventArgs e)
 {
     MqttClient.Instance().Subscribe(textBoxSubTopic.Text, comboBoxPubQos.SelectedValue.ToString());
 }
示例#2
0
 private void buttonPub_Click(object sender, RoutedEventArgs e)
 {
     MqttClient.Instance().Publish(textBoxPubTopic.Text, textBoxPubMessage.Text, comboBoxSubQos.SelectedValue.ToString(), false);
 }
示例#3
0
 private void m2_Click(object sender, EventArgs e)
 {
     MqttClient.Instance().Close();
     this.Close();
 }