static void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Console.WriteLine(string.Format( "------ Unsubscribed MsgId:{0}", e.MessageId )); complete = true; }
private void Client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { if (client.IsConnected) { client.Unsubscribe(topics); } }
void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { // write your code //called when unsubscribing from the queue? Debug.Log("client_MqttMsgUnsubscribed"); Debug.Log("" + e); }
/// <summary> /// broker acknowledges an unsubscription /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void FClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { var issued = FUnsubscribeStatus[e.MessageId]; FMessageStatusQueue.Enqueue(PrependTime("unsubscribed from " + issued.Item1)); FUnsubscribeStatus.Remove(e.MessageId); }
/// <summary> /// broker acknowledges an unsubscription /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void FClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { if (FUnsubscribeStatus.ContainsKey(e.MessageId)) { var issued = FUnsubscribeStatus[e.MessageId]; FMessageStatusQueue.Enqueue("unsubscribed from " + issued.Item1); FUnsubscribeStatus.Remove(e.MessageId); } }
public void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { try { AppendText("MqttMsgUnsubscribed Re=>" + e.MessageId.ToString() + "\n"); } catch (Exception ex) { AppendText("Re=>" + ex.Message + "\n"); } }
private void Client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { if (MqttManagerMessageReceived != null) { MqttManagerMessageReceived(this, new MqttManagerMessageEventArgs("Unsubscribed ", _name, Cmd.Unsubscribe, true, 0, "")); } if (MqttManagerUnsubscribedReceived != null) { MqttManagerUnsubscribedReceived(this, new UnsubscribedEventArgs(_name, e.MessageId)); } }
private void mqttClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Write($"time {DateTime.Now} -> "); Write($"MQTT unsubscribed to {_applicationId} on {_brokerHostName};"); if (_exitOnConnectionClosed.ToUpper() == "TRUE") { WriteLine(" Exit for restart"); Environment.Exit(1); } Write(" No exit"); }
private void Client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Invoke(new Action(() => { try { string topic = pendingUnsubscribes[e.MessageId]; pendingUnsubscribes.Remove(e.MessageId); log("UNSUBSCRIBE {0} ok", topic); int index = topicsCheckListBox.Items.IndexOf(topic); if (index != -1) { callbackManagingCheckStates = true; topicsCheckListBox.SetItemChecked(index, false); topicsCheckListBox.Enabled = true; topicsCheckListBox.Select(); } } catch (Exception ex) { log("Caught Exception {0}, message='{1}'", ex.ToString(), ex.Message); } callbackManagingCheckStates = false; })); }
public void clientMqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Debug.Log("Unsubscribed "); }
void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Debug.WriteLine("Unsubscribed for id = " + e.MessageId); }
private static void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Console.WriteLine("Unsubscribed topics with success"); }
private static void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Trace(String.Format("Response from unsubscribe with message id: {0}", e.MessageId.ToString())); }
void c2_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { // }
/// <summary> /// MQTT unsubscription from topic - Handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { #if (DEBUG) Debug.Print("Unsubscribed to topic! Watch out"); #endif }
void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { System.Console.WriteLine("MqttMsgUnsubscribedEventArgs: " + e.MessageId.ToString()); }
public override void FClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { }
private void ClientOnMqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { _logger.LogTrace($"OnMqttMsgUnsubscribed triggered with sender: '{sender.ToJson()}', e: '{e.ToJson()}'"); }
void Client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { }
private static void OnMqttUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Disconnect(); Connect(); }
private static void MqttClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Console.WriteLine($"Message {e.MessageId} unsubscribed"); }
static void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Utils.Print(log, "Unsubscribed for id = " + e.MessageId); }
private void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { // write your code }
private void OnTopicUnsubscribeHandler(object sender, MqttMsgUnsubscribedEventArgs e) { Console.WriteLine("Topic unsubscribed {0}", e.MessageId); }
private void _client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { }
private static void MqttMqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Debug.WriteLine($"Unsubscribed {e.MessageId}"); }
// 取消sub后的操作 void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { Console.WriteLine("client_MqttMsgUnsubscribed" + e); }
public void client_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { ClientResponce = "Success"; }
public virtual void FClient_MqttMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { throw new NotImplementedException(); }
//------------------------------------------------------------------------------------------------------------------------ private void MqttClientMsgUnsubscribed(object sender, MqttMsgUnsubscribedEventArgs e) { DebugEx.TraceLog("MqttClient:: Message id " + e.MessageId + " unsubscribed successfully"); }