예제 #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();
 }