コード例 #1
0
ファイル: Mqtt.cs プロジェクト: robeat101/beakn
        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());
        }
コード例 #2
0
 void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     Console.WriteLine(@"Subscribed for id = " + e.MessageId);
 }
コード例 #3
0
ファイル: AppClient.cs プロジェクト: yodiwo/plegma
 //------------------------------------------------------------------------------------------------------------------------
 private void _mqttClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     DebugEx.TraceLog("MqttClient:: Message id " + e.MessageId + " subscribed successfully with QoS levels" + e.GrantedQoSLevels.ToStringEx());
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
ファイル: Mqttclient_handler.cs プロジェクト: simonAndre/MQTT
 private void Client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     Console.WriteLine(e.MessageId);
 }
コード例 #6
0
 /// <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());
 }
コード例 #7
0
 /// <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);
 }
コード例 #8
0
ファイル: TTNApplication.cs プロジェクト: hajo001/ALoRa
 private void M_client_MqttMsgSubscribed(object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgSubscribedEventArgs e)
 {
 }
コード例 #9
0
 void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     Console.WriteLine("*** Message subscribed : " + e.MessageId);
 }
コード例 #10
0
ファイル: MQTTConnection.cs プロジェクト: phlegma/VVVV-MQTT
 public virtual void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     throw new NotImplementedException();
 }
コード例 #11
0
ファイル: MQTTNodes.cs プロジェクト: phlegma/VVVV-MQTT
 public override void FClient_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
 }
コード例 #12
0
ファイル: MQTTNodes.cs プロジェクト: phlegma/VVVV-MQTT
 /// <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);
     }
 }
コード例 #13
0
ファイル: Program.cs プロジェクト: rickggaribay/IoT
 static void client_MqttMsgSubscribed(object sender, MqttMsgSubscribedEventArgs e)
 {
     Debug.Print(e.MessageId.ToString());
 }