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