Пример #1
0
 /// <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);
 }
Пример #2
0
 void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     Console.WriteLine(@"MessageId = " + e.MessageId + @" Published = " + e.IsPublished);
 }
Пример #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);
 }
Пример #4
0
 void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     Console.WriteLine("Message Published - MessageId: " + e.MessageId);
 }
Пример #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));
 }
Пример #6
0
 public MqttMsgPublishedEventArgs(uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
     IsPublished = e.IsPublished;
     MessageId   = e.MessageId.ToString();
 }
Пример #7
0
 public override void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
 }
Пример #8
0
 public virtual void FClient_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     throw new NotImplementedException();
 }
Пример #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);
     }
 }
Пример #10
0
 private static void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     Debug.Print(e.MessageId.ToString());
 }
Пример #11
0
 private void MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
 }
Пример #12
0
 private static void Client_MqttMsgPublished(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishedEventArgs e)
 {
     Log.Logger.DebugFormat("{0}:{1}", e.MessageId, e.IsPublished);
 }
Пример #13
0
 void client_MqttMsgPublished(object sender, MqttMsgPublishedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("MessageId = " + e.MessageId + " Published = " + e.IsPublished);
 }