/// <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);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     Console.WriteLine("Message Published - MessageId: " + e.MessageId);
 }
Esempio n. 5
0
 private void MqttClient_MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
     logger.Debug("Published for id = " + e.MessageId);
     msgPublishedMethod?.Invoke(new MqttMsgPublishedEventArgs(e));
 }
Esempio n. 6
0
 public MqttMsgPublishedEventArgs(uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
     IsPublished = e.IsPublished;
     MessageId   = e.MessageId.ToString();
 }
Esempio n. 7
0
 public override void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
 }
Esempio n. 8
0
 public virtual void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     throw new NotImplementedException();
 }
Esempio n. 9
0
 /// <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);
     }
 }
Esempio n. 10
0
 private static void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     Debug.Print(e.MessageId.ToString());
 }
Esempio n. 11
0
 private void MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
 }
Esempio n. 12
0
 private static void Client_MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
     Log.Logger.DebugFormat("{0}:{1}", e.MessageId, e.IsPublished);
 }
Esempio n. 13
0
 void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("MessageId = " + e.MessageId + " Published = " + e.IsPublished);
 }