/// <summary> /// Message publish when subscribed event occurs or subscribed command executes <br> /// </summary> void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { log.Info("*** Message published : " + e.MessageId); }
void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { Console.WriteLine(@"MessageId = " + e.MessageId + @" Published = " + e.IsPublished); }
/// <summary> /// confirmation of the broker that a packet was successfully transmitted /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { FMessageStatusQueue.Enqueue(PrependTime("published message with packet ID " + e.MessageId)); FPublishStatus.Remove(e.MessageId); }
void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { Console.WriteLine("Message Published - MessageId: " + e.MessageId); }
private void MqttClient_MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e) { logger.Debug("Published for id = " + e.MessageId); msgPublishedMethod?.Invoke(new MqttMsgPublishedEventArgs(e)); }
public MqttMsgPublishedEventArgs(uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e) { IsPublished = e.IsPublished; MessageId = e.MessageId.ToString(); }
public override void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { }
public virtual void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { throw new NotImplementedException(); }
/// <summary> /// confirmation of the broker that a packet was successfully transmitted /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { if (FPublishStatus.Contains(e.MessageId)) { FMessageStatusQueue.Enqueue("published message with packet ID " + e.MessageId); FPublishStatus.Remove(e.MessageId); } }
private static void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { Debug.Print(e.MessageId.ToString()); }
private void MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e) { }
private static void Client_MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e) { Log.Logger.DebugFormat("{0}:{1}", e.MessageId, e.IsPublished); }
void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e) { System.Diagnostics.Debug.WriteLine("MessageId = " + e.MessageId + " Published = " + e.IsPublished); }