void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { var sb = new StringBuilder(); foreach (byte qosLevel in e.GrantedQoSLevels) { sb.Append(qosLevel); sb.Append(" "); } Console.WriteLine("Message Subscribed - MessageId: " + e.MessageId + ", QOS Levels: " + sb.ToString()); }
void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { Console.WriteLine(@"Subscribed for id = " + e.MessageId); }
//------------------------------------------------------------------------------------------------------------------------ private void _mqttClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { DebugEx.TraceLog("MqttClient:: Message id " + e.MessageId + " subscribed successfully with QoS levels" + e.GrantedQoSLevels.ToStringEx()); }
/// <summary> /// Message subscription when subscribed event occurs or subscribed command executes <br> /// </summary> void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { log.Info("*** Message subscribed : " + e.MessageId); }
private void Client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { Console.WriteLine(e.MessageId); }
/// <summary> /// The event received when the subscription has been accepted. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { Program.Log("The client is subscribed to the broker... \n" + e.ToString()); }
/// <summary> /// broker acknowledges a subscription /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { var issued = FSubscribeStatus[e.MessageId]; FMessageStatusQueue.Enqueue(PrependTime("subscribed to " + issued.Item1)); FSubscribeStatus.Remove(e.MessageId); }
private void M_client_MqttMsgSubscribed(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgSubscribedEventArgs e) { }
void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { Console.WriteLine("*** Message subscribed : " + e.MessageId); }
public virtual void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { throw new NotImplementedException(); }
public override void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { }
/// <summary> /// broker acknowledges a subscription /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { if (FSubscribeStatus.ContainsKey(e.MessageId)) { var issued = FSubscribeStatus[e.MessageId]; FMessageStatusQueue.Enqueue("subscribed to " + issued.Item1); FSubscribeStatus.Remove(e.MessageId); } }
static void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e) { Debug.Print(e.MessageId.ToString()); }